ruby on rails - Capybara "can't find" text field, yet fills it in -


in integration specs, log users in this:

fill_in "session_email", :with => user.email fill_in "session_password", :with => password click_button "submit" 

capybara fails tests unable find field "session_email". strange thing is, fills in fields , logs user in (i can see output sessions controller, , when use selenium can see working). tests fail.

the log-in thing opens in bootstrap modal.

i'm using capybara (2.1.0) , capybara-webkit (1.0.0).

has else experienced this? what's solution?

i had similar issue, , switching capybara-webkit fixed me. using bootstrap well, not sure if selenium doesn't bootstrap or what, webkit worked me


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -