Here is my scenario.I have a dropdown inside a citrix via VDI login.
*Get input from the user eg:name of the place
*Select the place from drop down based on user selection
Tried solutions:
Hotkeys:Down or up arrow doesn’t work in this dropdown menu.If i press “g” for goa and press o to continue ,it shows places starting with O instead of “GO” .There is huge data under this dropdown.
Pressing tab goes to another menu instead .
Select-item:Error is shown stating doesn’t support here.
Manual option to choose is drag till you see text in screen and click once you get the text.Is there any way to automate this scenario ?
if not, try this :
You have to start with a hotkey on the dropdown, to go to the starting letter,
do these in a loop
scrape region to get all available drop down options
check if your option is available in the scraped text
if yes - Click text to click on the option. - Break the loop
if not - then keep clicking on the down button on the scroll bar a few times based on number of records displayed in dropdown
Break on condition - the starting letter of the last word does not match with your option’s starting letter - throw exception that option is not available.
This is a suggestion. Not sure if there are any better options. You can give this a try.
Not something impossible. Might need some time to experiment and also the most efficient implementation might be lengthy.If that is how you can achieve it, still go for it. You can refer @carmen’s solution mentioned above.
In your case, you might not need to go through all 150+ options. You had mentioned that you can hit the starting letter of the option to go to the corresponding option.
Try doing that, go to the option with your starting letter and then start your search in a loop like this. Just that instead of using scraping, use find image. Note the break on condition with reference to the start of the letter too.