Using Capybara + Selenium, how do I select dialog box (confirm) options in the new Firefox 4? -


I have done a solid research for this issue and regret that there is nothing useful in relation to Firefox 4. This option works fine in 3.6:

  a = page.driver.browser.switch_to.alert if a.text == 'OK' a.dismiss else a.accept end   

Unfortunately, clicking on "OK" is not an option when manually pops up. I have tried various javascript options for this, as well (where one originally sent "tricks" prompt and sent it first).

Thank you for your time,

-

I have the same problem, the only one that I have seen so far is downgrading to Firefox 3.6.x

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -