public class LoginPage extends WebPage
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.WebElement |
inputPassword |
protected org.openqa.selenium.WebElement |
inputUsername |
protected org.openqa.selenium.WebElement |
login |
protected org.openqa.selenium.WebElement |
logout |
protected org.openqa.selenium.WebElement |
logstate |
BIG_TIMEOUT, config, DEFAULT_TIMEOUT, driver, runner
Constructor and Description |
---|
LoginPage() |
Modifier and Type | Method and Description |
---|---|
void |
ensureLogin(String username,
String password) |
void |
ensureLogout() |
boolean |
isAuthenticated() |
boolean |
isAuthenticated(int timeoutInSeconds) |
boolean |
isNotAuthenticated(int timeoutInSeconds) |
void |
login(String username,
String password) |
void |
logout() |
ensureLoaded, findElement, findElement, findElements, flushPageCache, getAttachment, getConfiguration, getDriver, getPage, getPage, getRunner, hasElement, hasElement, home, to, waitUntilElementFound, waitUntilElementNotFound
protected org.openqa.selenium.WebElement inputUsername
protected org.openqa.selenium.WebElement inputPassword
protected org.openqa.selenium.WebElement login
protected org.openqa.selenium.WebElement logout
protected org.openqa.selenium.WebElement logstate
public LoginPage()
public void ensureLogin(String username, String password)
public void logout()
public void ensureLogout()
public boolean isAuthenticated(int timeoutInSeconds)
public boolean isNotAuthenticated(int timeoutInSeconds)
public boolean isAuthenticated()
Copyright © 2016 Nuxeo SA. All rights reserved.