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