public class LoginPage extends AbstractPage
Modifier and Type | Field and Description |
---|---|
static String |
FEEDBACK_MESSAGE_DIV_XPATH |
static String |
LOGIN_DIV_XPATH |
URLCHANGE_MAX_WAIT, userServicesForm
Constructor and Description |
---|
LoginPage(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
void |
login(String username,
String password)
Fills in the login form with the username and password.
|
<T> T |
login(String username,
String password,
Class<T> pageClassToProxy)
Logs in and returns the next page.
|
void |
login(String username,
String password,
String language)
Fills in the login form with the username, password and language.
|
asPage, findElementAndWaitUntilEnabled, findElementAndWaitUntilEnabled, findElementsWithTimeout, findElementWaitUntilEnabledAndClick, findElementWaitUntilEnabledAndClick, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, get, getErrorFeedbackMessage, getFancyBoxContent, getFeedbackMessage, getHeaderLinks, getWebFragment, getWebFragment, hasElement, selectItemInDropDownMenu, switchToFrame, waitUntilEnabled, waitUntilEnabled, waitUntilURLDifferentFrom
public static final String FEEDBACK_MESSAGE_DIV_XPATH
public static final String LOGIN_DIV_XPATH
public void login(String username, String password, String language)
username
- the usernamepassword
- the passwordlanguage
- value of one of the options in the language select box.
For example, English (United States)public void login(String username, String password)
username
- the usernamepassword
- the passwordCopyright © 2013 Nuxeo SA. All Rights Reserved.