Web Address:
Test Page URL:
On the test page, follow these steps:
1) Input a numerical value in the field labeled as "customer id
"
2) Click on the button labelled as "Submit
"
3) After seeing an alert message, press "OK" using the following code snippet:
driver.switchTo().alert().accept();
4) Proceed to close the subsequent alert that reads "Customer Successfully Delete!"
In carrying out step 4, I encountered difficulties with the implementation of:
driver.switchTo().alert().dismiss();
which worked previously. Any guidance on how to address this issue would be greatly appreciated.
Note: The programming language being used is Java.