Forum Discussion
Right here is your problem, Oferv
This the propery of the combo box that gives the captions separated by the "pipe" character. Notice that there are no values in between the pipes. So, technically speaking, each item in your combo box, while it DISPLAYS a caption, doesn't actually have one. The caption is coming from some other code, probably owner-drawn or some such thing. They are probably images, not text. This is why ClickItem will not work.
And this probably backs up my assumption. Notice the "wText" field is not actually displaying the text as it appears on screen but appears to be calling some sort of object method that looks up and renders the text.
So, unfortunately, ClickItem is probably not going to work for you using the caption. You might need to use some sort of "ClickText" execution where you click the combo box to get the drop down and then find and click on the appropriate text string.
- Oferv2 years agoSuper Contributor
Yeah I saw that as well.
Can you please give an example of how i can use ClickText to find the correct text? where can i find this method? there's no ClickText method in that comboBox
- tristaanogre2 years agoEsteemed Contributor
Essentially, you may need to go through OCR to find the text on the screen and click on it.
Alternatively, if you click on the ComboBox to get the drop down without using ClickItem (simple Click method), you may be able to inspect the items in the list in the drop down window and see if there's a way you can find and click on the item that way.- Oferv2 years agoSuper Contributor
When clicking the drop down in order to open it using click() method, it won't open. it will open and close very quickly. not sure why
Related Content
- 6 years ago
- 2 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago