I am trying to learn how to best use Cucumber + Selenium. For the most part it seems to be very straight forward but I would like to get some guidance 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 }
A standard wait for form. How do I accomplish this in a Cucumber spec?