Cucumber, capybara, lightboxes, and you
Stamped: 21 Oct 2010 | Show comments
Selenium wasn't playing very nice with lightboxes during one of my tests, it just said it wasn't visible! Thanks! That helps all you have to do is wait silly:
When I wait until I can see "new_category"
And the step definition:
When /^I wait until I can see "([^"]*)"$/ do |selector|
page.has_css?("#{selector}", :visible => true)
end