Skip to content

Instantly share code, notes, and snippets.

@qagoose
Created April 8, 2018 13:34
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 qagoose/1c2202c66522c85d502b38ed516a9913 to your computer and use it in GitHub Desktop.
Save qagoose/1c2202c66522c85d502b38ed516a9913 to your computer and use it in GitHub Desktop.
public abstract class BasePage {
private WebDriver driver;
public BasePage(WebDriver driver) {
this.driver = driver;
}
public WebElement findElement(By by) {
return driver.findElement(by);
}
public void clickElement(By by) {
findElement(by).click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment