This repository holds begineer code to help you understand how to handle Basic Authentication Login pop-up using Selenium Java with different methods and on both local and cloud grid.
An alert is a user interface element in the form of a small window inside a browser that is used to grab users' attention about any important information and prompt them to acknowledge it and take required actions.
These are mostly used to ask permission, communicate essential information, or guide users through the application to ensure a smooth user experience in real time.
Different types of Alert/pop-up
- Simple Alerts/popups
- Confirmation Alerts/popups
- Prompt Alerts/popups
- Authentication Alerts/popups
HTTP authentication is a simple security mechanism used to restrict access of ineligible users to selected and protected web resources. It involves communication between the server and client using HTTP headers to provide user credentials to establish authenticity and provide access to the user.
One of the most used HTTP authentication methods is using the HTTP Basic Authentication. In this when a user attempts to access a protected web resource, the server prompts with a login pop-up asking for user credentials. These credentials are then used to establish a connection, once the user identity is authenticated at the server and then the user can access the resources.
- Passing user credentials in the URL of the webpage
- Using AutoIT
- Using Selenium 4 and Chrome DevTools
It is created using Selenium with Java, TestNG and Maven for Web-based automation
This is the list of tools, being used in this framework:
- Apache Maven
- Java 8
- TestNG Framework
- Selenium WebDrvier
- Import this project in Eclipse/IntelliJ as “Existing Maven Project”
- Execute any one of the testng.xml as per your requirement.
- You can see the logs coming up on Console as your execution progresses.