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.

Revisions

  1. samuelvaneck created this gist Aug 29, 2019.
    2 changes: 2 additions & 0 deletions wait_for_ajax.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    wait = Selenium::WebDriver::Wait.new
    wait.until { page.evaluate_script('jQuery.active').zero? }