Hi, If I add an JavaScript confirm popup to an anchor element, I get this exception when I run the test method: ``` OpenQA.Selenium.UnhandledAlertException: Modal dialog present ``` How do I handle this popup? Thank you. <!--- @huboard:{"order":17.1875} -->
Activity
robdmoore commentedon Dec 16, 2013
Hi,
You should be able to follow the advice set out here: http://stackoverflow.com/questions/10093604/how-to-click-javascript-confirm-dialogue-box-with-selenium-webdriver-in-c-sharp
To get to the web driver you just need the
Browser
property inside your page object.I'll leave this issue open so we can add in an abstraction within Seleno to avoid the need to dive into the Selenium driver.
nebaris commentedon Dec 17, 2013
Thank you! That solved my issue.