Authentication pop up chrome browser

551 views Asked by At

How to handle authentication pop up in chrome browser by using selenium web driver?

1

There are 1 answers

0
Rafael On

Try:

  WebDriver driver =  new ChromeDriver(options)
  driver.get("http://username:[email protected]");

or

ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=/path/to/your/custom/profile");
WebDriver driver =  new ChromeDriver(options);
driver.navigate().to(testURL);

References:

https://sites.google.com/a/chromium.org/chromedriver/capabilities https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md