Created
July 18, 2011 22:10
-
-
Save yesezra/1090813 to your computer and use it in GitHub Desktop.
Cucumber/Capybara/slow javascript secret sauce
This file contains 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
When /^I wait until "([^"]*)" is visible$/ do |selector| | |
wait_until(5) {page.has_css?("#{selector}", :visible => true)} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment