Re: How to handle modal dialog popup using Selenium webdriver?

733 views
Skip to first unread message

Mike Riley

unread,
Jan 26, 2013, 10:11:52 PM1/26/13
to seleniu...@googlegroups.com
Have you tried something like this (since it looks like an Alert):
        Alert alert = driver.switchTo().alert().accept();

Mike

On Wednesday, January 9, 2013 10:41:36 PM UTC-8, Varghese Renny wrote:

I need to handle the below image which is a modal dialog box?
With alert it's not working..Firefox driver i am using..selenium server 2.28.0
Please provide me a solution.
I tried executing javascript..window.showModalDialog = function(){}
It's not working..

Regards,
varghese


Shaik

unread,
Jul 20, 2013, 4:21:00 PM7/20/13
to seleniu...@googlegroups.com
Can please tell me where to include the ((JavascriptExecutor)wd.getDriver()).
executeScript("window.onbeforeunload=null;"); in the code..beore click the element which opens the popup or it acts as alert.accept??
Reply all
Reply to author
Forward
0 new messages