Sample Buttons And Inputs
Hi There,
I made this post for a testing ground to try out your AppleScript / Javascript automation skills. Try clicking buttons, inputting, and getting values from this page. When you click a button or link an alert should appear letting you know if you were successful. If you have any questions feel free to reach out via the contact page or comments.
Here are a few examples you can try on this page:
tell application "Safari"
do javascript "document.getElementById('aTag1').click();" in document 1
end tell
tell application "Safari"
do javascript "document.getElementsByClassName('testText')[0].innerHTML;" in document 1
end tell
tell application "Safari"
do javascript "document.getElementsByTagName('input')[3].value = ' I did it!';" in document 1
end tell
This is text 1
This is text 2
This is text 3