Skip to content

Instantly share code, notes, and snippets.

@qagoose
Created Apr 8, 2018
Embed
What would you like to do?
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