I am trying to select items in several combo boxes on a tab in a windows 7 application.
I can click the tab using accessible objects, but I'm having a hard time understanding how to click and select the combobox item.
I've tried navigation from the Detail PAGETAB (for example: c1 c1) but this gives me an error when I click [test]
The find accessible object dialog navigation is as follows:
PAGETAB "Detail"
+++CLIENT "" ""
++++++TEXT "" ""
++++++PUSHBUTTON "Open"
+++STATICTEXT "First Occurrence Date:"
+++DROPLIST ""
++++++DROPLIST ""
+++STATICTEXT "Priority"
+++CLIENT
++++++TEXT ""
+++CLIENT
++++++TEXT "" ""
++++++PUSHBUTTON "Open"
...
Is there a way to navigate to the right combobox and enter the text?
Do you suggest another method?
I think it is the CLIENT role (for example, the text "GIVE NORMAL QUEUE" is what is currently selected in the combobox). Show invisible and show useless do not bring up additional items in the navigation pane.
int w=win("Trend Analysis and Corrective Actions" "WindowsForms10.Window.8.app.0.378734a")
Acc a.Find(w "PAGETAB" "Detail" "class=WindowsForms10.Window.8.app.0.378734a" 0x5 0 0 "c1")
Possible reasons and solutions:
1. Some property does not match. Try to clear or change some values.
2. The object or some object in the path is invisible. Try to check 'Search -> + invisible objects'.
3. Try to check 'Search -> + useless objects'.
4. Incorrect implementation of accessible objects in the window. Try to clear Class or some other value.
5. Try to capture other object and use Navigate.
It finds the Details PAGETAB without issue, but it doesn't seem to find anything below that whether I navigate with C1 or first. First moves it to the first PAGETAB. I can't capture CLIENT, because the name changes when I change the combobox value.
Essentially it scans for the "Priority" label, then mouses over 100 pixels, then left clicks (into the combobox), then types the priority (in the combobox).