ruby on rails - Testing a disappearing alert box with Capybara -
i using capybara , selenium test features. have alert message disappear after 2 seconds (i.e., element removed html page).
now, using capybara check if element exists gives inconsistent results: passes. sometime fails.
how should fix issue?
try code. it'll work
page.driver.browser.switch_to.alert.accept
Comments
Post a Comment