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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -