What if the selection you want needs to be selected after the menu has to be scrolled? See screen capture below. I am trying to figure out how I can emulate the same menu in the script run, so that the tester can select the choice “from” a pop-up menu, and then send the value of the selection to “it”.
[quote=“EggplantMatt”]You can prompt a user to enter a value using the ask command:
ask "What country do you want to select?"
put it into countryToSelect
Click (Text: countryToSelect, TextSize:"9", TextFont:"Arial")
(The text properties are just an example, you’d need to determine the actual text properties.)
The Click command serves to verify if the image exists (it fails if it doesn’t), but if you wanted to verify that the item exists in the list before trying to click it, you can use the imageFound() function:
if imageFound(Text: countryToSelect, TextSize:"9", TextFont:"Arial")
LogError "entry for" && countryToSelect && "does not exist"