How to disable popup blocking in IE11 via java

42 views
Skip to first unread message

pankhuria...@gmail.com

unread,
Feb 26, 2017, 9:55:43 PM2/26/17
to Selenium Users
Hi,

I have a button in my AUT and when i click on that button IE says whether i want to allow popup. I can disable it manually. But i want to do it programmatically as I want to run my testcases  on jenkins server. I have tried using .setCapability("disable-popup-blocker", true) but it doesn't work for me.

Please help.

Thanks

anemuday

unread,
Feb 27, 2017, 1:10:51 AM2/27/17
to Selenium Users
Did you check with "unexpectedAlertBehaviour" desired capability? Possible values can be "Accept", "Dismiss", "Ignore"

Thanks,
Uday
Reply all
Reply to author
Forward
0 new messages