Skip to content

vipulgupta31/selenium-auth-login-pop-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Handling Basic Authentication Login pop-up using Selenium Java

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.

What is an Alert/Popup?

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

  1. Simple Alerts/popups
  2. Confirmation Alerts/popups
  3. Prompt Alerts/popups
  4. Authentication Alerts/popups

HTTP Basic Authentication

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.

Different ways to handle login pop-up In Selenium WebDriver

  1. Passing user credentials in the URL of the webpage
  2. Using AutoIT
  3. Using Selenium 4 and Chrome DevTools

About Project

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:

  1. Apache Maven
  2. Java 8
  3. TestNG Framework
  4. Selenium WebDrvier

Steps for Local Execution

  1. Import this project in Eclipse/IntelliJ as “Existing Maven Project”
  2. Execute any one of the testng.xml as per your requirement.
  3. You can see the logs coming up on Console as your execution progresses.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages