Skip to content

Instantly share code, notes, and snippets.

@andreguilhon
Created October 10, 2016 13:10
Show Gist options
  • Save andreguilhon/6dc28a5ac71fdd0f719f0169b9619f44 to your computer and use it in GitHub Desktop.
Save andreguilhon/6dc28a5ac71fdd0f719f0169b9619f44 to your computer and use it in GitHub Desktop.
Timer timer = new Timer();
long inicio = timer.sendTime(0, "");
System.setProperty("webdriver.ie.driver", driverPath + "IEDriverServer.exe");
driver = new InternetExplorerDriver();
driver.manage().window().maximize();
driver.navigate().to("https://***/");
WebDriverWait wait = new WebDriverWait(driver, 30);
Alert alert = wait.until(ExpectedConditions.alertIsPresent());
alert.authenticateUsing(new UserAndPassword("***", "****"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment