Created
January 16, 2014 21:53
-
-
Save christiangoudreau/8464168 to your computer and use it in GitHub Desktop.
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
@Given("^I try to access the (\\S+) page$") | |
public void iNavigateTo(String nameToken) { | |
String url = baseUrl + "#" + nameToken; | |
webDriver.get(url); | |
new WebDriverWait(webDriver, TRY_TIME_OUT_IN_SECONDS); | |
} | |
@Then("^I see the login screen$") | |
public void i_see_the_login_screen() { | |
applicationPage.waitForLoginScreen(); | |
assertTrue(webDriver.findElement(By.cssSelector("[id$=\"login-root\"]")) != null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment