Skip to content

Instantly share code, notes, and snippets.

@kyupark
Last active December 18, 2015 01:19
Show Gist options
  • Save kyupark/5703193 to your computer and use it in GitHub Desktop.
Save kyupark/5703193 to your computer and use it in GitHub Desktop.
repeat 2 times
tell application "Safari"
set the URL of the front document to "http://www.google.com"
delay 1.5
do JavaScript "document.getElementsByClassName('button')[0].click()" in document 1
end tell
delay 0.5
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment