I am trying to learn how to make the best use of cucumber + selenium. For the most part, this seems very simple, but I would like to get some recommendations on how to test dialogs. Basically I need to implement:
assert !60.times{ break if ("Other Income" == @selenium.get_text("//form[@id='new_account']/h3") rescue false); sleep 1 }
Standard wait form. How to do this in the Cucumber specification?
To update this answer a bit, I highly recommend using Capybara:
http://github.com/jnicklas/capybara
The ability to use javascript is just gem installaway!
gem install
https://github.com/cucumber/cucumber/wiki/setting-up-selenium , , Cucumber ( ).
, , Selenium. , selenium-client -v = 1.2.14. . , , . / .