Skip to content

Instantly share code, notes, and snippets.

@samuelvaneck
Created August 29, 2019 05:46
Show Gist options
  • Select an option

  • Save samuelvaneck/5cc9a662d2d793956e4fc0b5954abec7 to your computer and use it in GitHub Desktop.

Select an option

Save samuelvaneck/5cc9a662d2d793956e4fc0b5954abec7 to your computer and use it in GitHub Desktop.
RSpec wait for ajax
wait = Selenium::WebDriver::Wait.new
wait.until { page.evaluate_script('jQuery.active').zero? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment