Skip to content

Instantly share code, notes, and snippets.

@kohenkatz
Last active November 9, 2017 19:21
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 kohenkatz/6036b6d85efdd5e237016c3a2eaec16a to your computer and use it in GitHub Desktop.
Save kohenkatz/6036b6d85efdd5e237016c3a2eaec16a to your computer and use it in GitHub Desktop.
Mojo Wifi Testing
tell application "Safari"
-- if it is running then
-- quit
-- delay 5
-- end if
activate
open location "http://www.dslreports.com/speedtest"
delay 1
activate
delay 1
do javascript "window.addEventListener('load', function() {
safe_start(8);
})" in front document
end tell
tell application "Safari"
-- if it is running then
-- quit
-- delay 5
-- end if
activate
open location "https://beta.speedtest.net/"
delay 1
activate
delay 1
do javascript "window.addEventListener('load', function() {
document.getElementsByClassName('js-start-test')[0].click();
})" in front document
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment