public class LoginPage
extends java.lang.Object
Constructor | Description |
---|---|
LoginPage(org.openqa.selenium.WebDriver driver) |
Creates a new LoginPage for the Santander Bank
|
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isLoggedIn(org.openqa.selenium.WebDriver driver) |
Check if a user is logged in.
|
void |
login(java.lang.String login,
char[] password) |
Logging the given user.
|
public LoginPage(org.openqa.selenium.WebDriver driver)
driver
- the WebDriver
to use for that pagepublic static boolean isLoggedIn(org.openqa.selenium.WebDriver driver)
true
if an user is logged in, false
else.public void login(java.lang.String login, char[] password) throws WebSiteException
login
- the account to loginpassword
- the passwordWebSiteException
- if the login fails