2019-11-28

How to handle browser admin login popup in selenium?

How to enter username and password to this browser login popup?



Solution:

You can send username and password in the URL request.

Example:  htpp://username:password@xyz.com


But in the latest web browser url credentials are blocked because of security issues.


Still you can use that features, you have to create web driver with some special operations.

Example:

ChromeOptions chromeOptions = new ChromeOptions();

chromeOptions.addArguments("--disable-blink-features=BlockCredentialedSubresources");

This feature consider as network error.
You can reopen the URL.
Example:

driver.get("htpp://username:password@xyz.com");

driver.get("xyz.com");


1 comment:

  1. Step into the world of automated testing and web application quality assurance with our Selenium Training In Chennai at Infycle Technologies. Selenium is a leading open-source tool for automating web browsers, and our comprehensive program is your gateway to mastering this essential skill. With expert guidance, hands-on projects, and a curriculum designed to cover Selenium's capabilities and best practices, you'll acquire the skills needed to excel in software testing. Whether you're an aspiring QA engineer, a recent graduate, or a professional seeking to enhance your career, our course caters to all levels of expertise. Join us now to become a Selenium expert, accelerate your testing career, and unlock a world of opportunities in the software testing industry. Enroll today and let your Selenium journey begin with Infycle Technologies! For more details call at 7504633633 0r 7204633633.

    ReplyDelete