Created
March 18, 2017 01:44
-
-
Save bnymn/d9bc86679c1aac3e2ca96172a06c7738 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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