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");


Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation