-
-
Save qagoose/1c2202c66522c85d502b38ed516a9913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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