google chrome - capybara with selenium wait for onchange event -


i have form field onchange event inserts text page.

fill_in "password", :with => 'test' # should trigger onchange inserts text below page page.should have_content('very insecure') 

now when test cucumber/ capybara/ selenium firefox works without problems. using selenium chrome, capybara complains text not found in document.

now wonder how fix this. need manually invoke event (which real hacky imo)? or have wait events being processed (how?) between fill_in , should have_content methods?

if feel issue need wait longer, throw in "sleep 3" before page.should. there raw selenium commands best avoid them.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -