Ejemplo n.º 1
0
 @Then("^Latest stories is displayed$")
 public void Latest_stories_is_displayed() throws Throwable {
   webDriver.waitForElement(By.id("js-latest-stories"));
 }
Ejemplo n.º 2
0
 @Then("^Latest developments is displayed$")
 public void Latest_developments_is_displayed() throws Throwable {
   WebElement heading = webDriver.waitForElement(By.cssSelector(".story-latest .story-sub-head"));
   assertTrue(heading.getText().equals("Latest"));
 }