Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobsalmela/8acfe36878ca6d35dc78 to your computer and use it in GitHub Desktop.
Save jacobsalmela/8acfe36878ca6d35dc78 to your computer and use it in GitHub Desktop.
Enter sample TestNav credentials
# Click full-screen button so all computers have the Safari window in the same position
osascript -e 'tell application "System Events"
set frontmost of process "Safari" to true
tell process "Safari"
click button 4 of window 1
end tell
end tell'
# Sleep for a bit seconds to make sure full screen is fully-activated
sleep 3
# Enter sample credentials
# Again, adjust these coordinates per your device using Cmd+Shift+4
click -x 1200 -y 320
sleep 1
osascript -e 'tell application "System Events"
keystroke "username"
keystroke tab
keystroke "testcode"
keystroke return
end tell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment