Hi, I have written my test case in java with TestNG framework. when I run my test it gets failed because their is an alert which is not popping up.
Hi Brett, you have to add capability(capabilities.setCapability(“unexpectedAlertBehaviour”,“ignore”); in your test code. This will successfully run your test and the pop-up will appear. Happy to help you!
2 Likes