Hi
The command in the subject used to work before Mavericks. Now it doesn’t!
The code is embedded in an applescript script:
repeat with ListIndex from 0 to 100
tell application “Safari”
do JavaScript "document.getElementByID(‘dropEmps’).selectedIndex = " & ListIndex in document 1
do JavaScript “document.getElementById(‘dropEmps’)[” & ListIndex & “].innerText” in document 1
do JavaScript “document.getElementsByName(‘_ctl7’)[0].click()” in document 1
end tell
— do other stuff
end repeat
dropEmps is the ID of a list of names. One selects the name and clicks the ‘Submit’ button (_ctl7) to update the data so it can be processed.
The loop automates this process
Only the second command is working.
Safari does not reflect the change in the first command or click the button in the third command as it used to.
What has changed?
Thank you.
Model: imac 10.9.4
AppleScript: 2.3.2
Browser: Safari 7.0.6 (9537.78.2)
Operating System: Mac OS X (10.8)