Skip to content

Instantly share code, notes, and snippets.

@artkoshelev
Created October 14, 2014 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artkoshelev/4751a4f1b34211e43f4e to your computer and use it in GitHub Desktop.
Save artkoshelev/4751a4f1b34211e43f4e to your computer and use it in GitHub Desktop.
@Name("Search form")
@Block(@FindBy(xpath = "//form[@class='f1']"))
public class SearchArrow extends Test1 {
public WebDriver driver;
}
public class SearchPage {
@FindBy(xpath = "//form[@class='f1']")
private SearchArrow searchArrow;
public SearchPage(WebDriver driver) {
HtmlElementLoader.populatePageObject(this, driver);
searchArrow.driver = driver;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment