How to handle authentication popup with Selenium WebDriver using Java
How to handle authentication popup with Selenium WebDriver using Java
Tagged:
It looks like you're new here. If you want to get involved, click one of these buttons!
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));