Created
July 6, 2020 05:11
-
-
Save KrishnB/7a1bbc40a6e668f6b9b623f4c12b2fdb to your computer and use it in GitHub Desktop.
This file contains hidden or 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 extends BasePage<LoginPage> { | |
@FindBy(name = "username") | |
private WebElement username; | |
@FindBy(name = "password") | |
private WebElement password; | |
@FindBy(css = "input[name ='submit']") | |
private WebElement loginBtn; | |
public void login(Credentials credentials) { | |
type(username, credentials.getUsername()); | |
type(password, credentials.getPassword()); | |
click(loginBtn); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment