Skip to content

Instantly share code, notes, and snippets.

@christiangoudreau
Created January 16, 2014 21:53
Show Gist options
  • Save christiangoudreau/8464168 to your computer and use it in GitHub Desktop.
Save christiangoudreau/8464168 to your computer and use it in GitHub Desktop.
@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