Created
August 29, 2019 05:46
-
-
Save samuelvaneck/5cc9a662d2d793956e4fc0b5954abec7 to your computer and use it in GitHub Desktop.
RSpec wait for ajax
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
| 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