Last active
November 10, 2017 22:48
-
-
Save shs96c/10d24dd2e51651f12a8f2785934b98bc to your computer and use it in GitHub Desktop.
This file contains 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
@Test | |
public void canAuthenticateUsingBasicAuthentication() { | |
String url = appServer.whereIs("basicAuth"); | |
driver.get(url); | |
Alert alert = wait.until(alertIsPresent()); | |
Credentials user = new UserAndPassword("test", "test"); | |
alert.authenticateUsing(user); | |
WebElement element = wait.until(presenceOfElementLocated(By.tagName("h1"))); | |
assertEquals("authorized", element.getText()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment