How to handle authentication popup with Selenium WebDriver using Java

How to handle authentication popup with Selenium WebDriver using Java

Comments

  • WebDriverWait wait = new WebDriverWait(driver, 10);
    Alert alert = wait.until(ExpectedConditions.alertIsPresent());
    alert.authenticateUsing(new UserAndPassword(username, password));

Sign In or Register to comment.