Cucumber + Selenium in javascript applications

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?

+6
source share
3 answers

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!

+13
source

, , Selenium. , selenium-client -v = 1.2.14. . , , . / .

+1

All Articles