Search code examples
firefoxselenide

How to disable security warning in firefox using selenide?


enter image description here I am getting this error while i run in firefox(version 42.0). when i check it in chrome , it does not show up.Please help me to resolve this issue.


Solution

  • You can pass through security warning using selenide by the following:

    WebDriverRunner.getWebDriver().switchTo().alert().accept();