-
-
Save qagoose/d622104e47b55a102f8cc06038699bfb 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 class LoginPage { | |
private WebDriver driver; | |
public LoginPage(WebDriver driver) { | |
this.driver = driver; | |
} | |
public void fillEmailAddressField(String text) { | |
driver.findElement(By.id("emailAddress")).sendKeys(text); | |
} | |
public void fillPasswordField(String text) { | |
driver.findElement(By.id("password")).sendKeys(text); | |
} | |
public void tickKeepMeLoggedIn() { | |
driver.findElement(By.id("keepMeLoggedIn")).click(); | |
} | |
public void clickLoginButton() { | |
driver.findElement(By.id("loginBtn")).click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment