Skip to content

Instantly share code, notes, and snippets.

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("***", "****"));