This repository contains code examples for handling modal dialog boxes, popups, and alerts in webpages using Selenium JAVA.
A Modal Dialog Box (also referred to as Bootstrap Modal Window) is built in Bootstrap Framework, due to which it gets displayed on top of your current page.
Alerts in web development usually refer to a message or notification that lets the user know about information, namely:
- Asking for access permissions.
- Highlighting mandatory fields on a form.
- Display warning messages or help information.
Pop-up refers to a new window or tab that pops up or gets opened as a result of some interaction on the webpage. It can come up in several conditions and as per implementation.
It is created using Selenium with Java, TestNG, and Maven.
This is the list of tools, being used in this framework:
- Apache Maven
- Java 8
- Selenium Cloud Grid - LambdaTest Platform
- TestNG Framework
- Import this project in Eclipse/IntelliJ as an “Existing Maven Project”
- Go to the test file and Run the test case for your desired case.
- You can see the logs shown on the Console as your execution progresses.
- Since we are using RemoteWebDriver and executing on the Cloud Grid platform, LambdaTest, you can log in to same and view detailed logs on the dashboard.