Alerts are inevitable in any Web application. Knowing how to handle the Alerts is one of the crucial tasks in Selenium.
The operations that we can perform on these popups using selenium are,
1) accept - Refers to clicking on the Ok button.
2) dismiss - Refers to clicking on the Cancel button.
3) sendKeys - Refers to entering text into a textbox available in the prompt box.
4) getText - Refers to get the label text present on the popup box.
Topics Covered
-------------------------------
1. What is Alert?
2. The interface in Selenium responsible for Alert
3. How to handle alerts
Support by donating:
---------------------------------
Best way to reach me (replies will be faster): YouTube comment section
👤 Name : Hashir Hasmy
📱 LinkedIn : / mohamed-hashir-370840198
📧 Email : [email protected]
🔗 GitHub : https://github.com/hashirhasmy
#selenium #Java #Alerts #Sinhala #HashirHasmy #webAutomation