LoginPage
public class TargoBankLoginPage extends AbstractSeleniumWebPage implements LoginPage
driver
Constructor | Description |
---|---|
TargoBankLoginPage(org.openqa.selenium.WebDriver driver) |
Creates a new LoginPage for the TargoBank 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.
|
elementExist
public TargoBankLoginPage(org.openqa.selenium.WebDriver driver)
driver
- the WebDriver
to use for that pagepublic boolean isLoggedIn()
LoginPage
isLoggedIn
in interface LoginPage
true
if an user is logged in, false
else.public void login(java.lang.String login, char[] password) throws WebSiteException
LoginPage
login
in interface LoginPage
login
- the account to loginpassword
- the passwordWebSiteException
- if the login fails