Esempio n. 1
0
  @Test(dataProvider = "searchQueries")
  public void searchWithGoogle(String searchQuery, SearchResult expectedSearchResult)
      throws Exception {
    homePage.getSearchBox().clear();
    homePage.getSearchBox().sendKeys(searchQuery);
    homePage.getSearchBox().submit();

    // somehow we need to sleep a bit using google's submit
    Thread.sleep(500);
    homePage.waitForSearchResult(0, expectedSearchResult);
  }
Esempio n. 2
0
 @BeforeClass
 public void openHomePage() throws Exception {
   homePage = new HomePage(driver, "http://www.google.nl");
   homePage.open();
 }