Hi there.
I’m working on an Applescript that will automatically select a certain value from a drop-down menu.
Here’s the webpage’s relevant HTML:
I want to have the Applescript automatically select the value of ‘2’. Here’s what I’ve got that’s currently not working:
tell application "Safari"
-- go to appropriate URL to login
open location "http://www.xxx.com"
delay 4
do JavaScript "document.forms['select']['DropDownListSeats'].option.value = '2'"
end tell
Any help is appreciated!