Skip to content

Instantly share code, notes, and snippets.

@richdownie
Created September 24, 2013 15:49
Show Gist options
  • Save richdownie/6686881 to your computer and use it in GitHub Desktop.
Save richdownie/6686881 to your computer and use it in GitHub Desktop.
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