Skip to content

Instantly share code, notes, and snippets.

Created April 8, 2018 13:34
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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment