Skip to content

Instantly share code, notes, and snippets.

@bnymn
Created March 18, 2017 01:44
Show Gist options
  • Save bnymn/d9bc86679c1aac3e2ca96172a06c7738 to your computer and use it in GitHub Desktop.
Save bnymn/d9bc86679c1aac3e2ca96172a06c7738 to your computer and use it in GitHub Desktop.
loop do
sleep(2)
if driver.execute_script('return document.readyState') == "complete"
break
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment