URL: https://www.guru99.com/alert-popup-handling-selenium.html
Test Page: http://demo.guru99.com/test/delete_customer.php
From the test page,
1) Enter numeric number in the customer id
field
2) Click on Submit
button
3) Click on "OK" in the alert message using
driver.switchTo().alert().accept();
4) Close the next alert saying "Customer Successfully Delete!"
step 4: I'm not able to use
driver.switchTo().alert().dismiss();
like I previously did.
I need help as to how do you close the consecutive pop up alert?
Edit: I'm working with Java