Created
September 24, 2013 15:49
-
-
Save richdownie/6686881 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
AfterStep do | |
puts @js_errors = @driver.execute_script("return window.jsErrors") | |
if @js_errors == [] | |
#continue | |
elsif @js_errors == nil | |
#continue | |
else | |
raise "JAVASCRIPT ERRORS => #{@js_errors}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment