Skip to content

Instantly share code, notes, and snippets.

@AlfredoCasado
Created November 21, 2010 01:32
Show Gist options
  • Save AlfredoCasado/708351 to your computer and use it in GitHub Desktop.
Save AlfredoCasado/708351 to your computer and use it in GitHub Desktop.
public class GoogleSearchTest {
@Rule
GoogleAplicationDriver googleAplicationDriver = new GoogleAplicationDriver();
@Test
public void searchQueryShouldBePartOfTheTitleOfTheResultPage() {
GoogleResultPage googleResultPage = googleAplicationDriver
.goToSearchPage()
.searchFor("Selenium OpenQA")
assertThat(googleResultPage.title(),
containsString("Selenium OpenQA"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment