This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("***", "****")); |