Package org.nuxeo.ecm.webengine.test
Class LoginPage
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.web.WebPage
-
- org.nuxeo.ecm.webengine.test.LoginPage
-
public class LoginPage extends WebPage
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.nuxeo.runtime.test.runner.web.WebPage
BIG_TIMEOUT, config, DEFAULT_TIMEOUT, driver, runner
-
-
Constructor Summary
Constructors Constructor Description LoginPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.nuxeo.runtime.test.runner.web.WebPage
ensureLoaded, findElement, findElement, findElements, flushPageCache, getAttachment, getConfiguration, getDriver, getPage, getPage, getRunner, hasElement, hasElement, home, to, waitUntilElementFound, waitUntilElementNotFound
-
-
-
-
Field Detail
-
inputUsername
protected org.openqa.selenium.WebElement inputUsername
-
inputPassword
protected org.openqa.selenium.WebElement inputPassword
-
login
protected org.openqa.selenium.WebElement login
-
logout
protected org.openqa.selenium.WebElement logout
-
logstate
protected org.openqa.selenium.WebElement logstate
-
-
Constructor Detail
-
LoginPage
public LoginPage()
-
-
Method Detail
-
ensureLogin
public void ensureLogin(String username, String password)
-
logout
public void logout()
-
ensureLogout
public void ensureLogout()
-
isAuthenticated
public boolean isAuthenticated(int timeoutInSeconds)
-
isNotAuthenticated
public boolean isNotAuthenticated(int timeoutInSeconds)
-
isAuthenticated
public boolean isAuthenticated()
-
-