public abstract class AbstractPage extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
URLCHANGE_MAX_WAIT |
org.openqa.selenium.WebElement |
userServicesForm |
| Constructor and Description |
|---|
AbstractPage(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
asPage(Class<T> pageClassToProxy) |
static org.openqa.selenium.WebElement |
findElementAndWaitUntilEnabled(org.openqa.selenium.By by)
Finds the first
WebElement using the given method, with the
default timeout. |
static org.openqa.selenium.WebElement |
findElementAndWaitUntilEnabled(org.openqa.selenium.By by,
int findElementTimeout,
int waitUntilEnabledTimeout)
Finds the first
WebElement using the given method, with a
findElementTimeout. |
static List<org.openqa.selenium.WebElement> |
findElementsWithTimeout(org.openqa.selenium.By by)
Finds webelement list using the given method, with a timeout
|
static void |
findElementWaitUntilEnabledAndClick(org.openqa.selenium.By by)
Finds the first
WebElement using the given method, with the
default timeout. |
static void |
findElementWaitUntilEnabledAndClick(org.openqa.selenium.By by,
int findElementTimeout,
int waitUntilEnabledTimeout)
Finds the first
WebElement using the given method, with a
findElementTimeout. |
static org.openqa.selenium.WebElement |
findElementWithTimeout(org.openqa.selenium.By by)
Finds the first
WebElement using the given method, with a
timeout. |
org.openqa.selenium.WebElement |
findElementWithTimeout(org.openqa.selenium.By by,
int timeout)
Finds the first
WebElement using the given method, with a
timeout. |
org.openqa.selenium.WebElement |
findElementWithTimeout(org.openqa.selenium.By by,
int timeout,
org.openqa.selenium.WebElement parentElement)
Finds the first
WebElement using the given method, with a
timeout. |
static org.openqa.selenium.WebElement |
findElementWithTimeout(org.openqa.selenium.By by,
org.openqa.selenium.WebElement parentElement)
Finds the first
WebElement using the given method, with a
timeout. |
<T> T |
get(String url,
Class<T> pageClassToProxy) |
String |
getFeedbackMessage()
Gets the info feedback message.
|
HeaderLinksSubPage |
getHeaderLinks()
Gets the top bar navigation sub page.
|
static void |
waitUntilEnabled(org.openqa.selenium.WebElement element)
Waits until an element is enabled, with a timeout.
|
static void |
waitUntilEnabled(org.openqa.selenium.WebElement element,
int timeout)
Waits until an element is enabled, with a timeout.
|
void |
waitUntilURLDifferentFrom(String url)
Waits until the URL is different from the one given in parameter, with a
timeout
|
public static int URLCHANGE_MAX_WAIT
public org.openqa.selenium.WebElement userServicesForm
public <T> T asPage(Class<T> pageClassToProxy)
public String getFeedbackMessage()
public HeaderLinksSubPage getHeaderLinks()
public org.openqa.selenium.WebElement findElementWithTimeout(org.openqa.selenium.By by,
int timeout)
throws org.openqa.selenium.NoSuchElementException
WebElement using the given method, with a
timeout.by - the locating mechanismtimeout - the timeout in millisecondsorg.openqa.selenium.NoSuchElementException - when not foundpublic org.openqa.selenium.WebElement findElementWithTimeout(org.openqa.selenium.By by,
int timeout,
org.openqa.selenium.WebElement parentElement)
throws org.openqa.selenium.NoSuchElementException
WebElement using the given method, with a
timeout.by - the locating mechanismtimeout - the timeout in millisecondsparentElement - find from the elementorg.openqa.selenium.NoSuchElementException - when not foundpublic static org.openqa.selenium.WebElement findElementWithTimeout(org.openqa.selenium.By by)
throws org.openqa.selenium.NoSuchElementException
WebElement using the given method, with a
timeout.by - the locating mechanismtimeout - the timeout in millisecondsorg.openqa.selenium.NoSuchElementException - when not foundpublic static List<org.openqa.selenium.WebElement> findElementsWithTimeout(org.openqa.selenium.By by) throws org.openqa.selenium.NoSuchElementException
org.openqa.selenium.NoSuchElementExceptionpublic static org.openqa.selenium.WebElement findElementWithTimeout(org.openqa.selenium.By by,
org.openqa.selenium.WebElement parentElement)
throws org.openqa.selenium.NoSuchElementException
WebElement using the given method, with a
timeout.by - the locating mechanismparentElement - find from the elementorg.openqa.selenium.NoSuchElementException - when not foundpublic static void waitUntilEnabled(org.openqa.selenium.WebElement element,
int timeout)
throws org.openqa.selenium.NotFoundException
element - the elementtimeout - the timeout in millisecondsorg.openqa.selenium.NotFoundExceptionpublic static void waitUntilEnabled(org.openqa.selenium.WebElement element)
throws org.openqa.selenium.NotFoundException
element - the elementorg.openqa.selenium.NotFoundExceptionpublic static org.openqa.selenium.WebElement findElementAndWaitUntilEnabled(org.openqa.selenium.By by,
int findElementTimeout,
int waitUntilEnabledTimeout)
throws org.openqa.selenium.NotFoundException
WebElement using the given method, with a
findElementTimeout. Then waits until the element is enabled, with
a waitUntilEnabledTimeout.by - the locating mechanismfindElementTimeout - the find element timeout in millisecondswaitUntilEnabledTimeout - the wait until enabled timeout in
millisecondsorg.openqa.selenium.NotFoundException - if the element is not found or not enabledpublic static org.openqa.selenium.WebElement findElementAndWaitUntilEnabled(org.openqa.selenium.By by)
throws org.openqa.selenium.NotFoundException
WebElement using the given method, with the
default timeout. Then waits until the element is enabled, with the
default timeout.by - the locating mechanismorg.openqa.selenium.NotFoundException - if the element is not found or not enabledpublic static void findElementWaitUntilEnabledAndClick(org.openqa.selenium.By by,
int findElementTimeout,
int waitUntilEnabledTimeout)
throws org.openqa.selenium.NotFoundException
WebElement using the given method, with a
findElementTimeout. Then waits until the element is enabled, with
a waitUntilEnabledTimeout. Then clicks on the element.by - the locating mechanismfindElementTimeout - the find element timeout in millisecondswaitUntilEnabledTimeout - the wait until enabled timeout in
millisecondsorg.openqa.selenium.NotFoundException - if the element is not found or not enabledpublic static void findElementWaitUntilEnabledAndClick(org.openqa.selenium.By by)
throws org.openqa.selenium.NotFoundException
WebElement using the given method, with the
default timeout. Then waits until the element is enabled, with the
default timeout. Then clicks on the element.by - the locating mechanismorg.openqa.selenium.NotFoundException - if the element is not found or not enabledpublic void waitUntilURLDifferentFrom(String url)
url - the URL to compare toCopyright © 2012 Nuxeo SA. All Rights Reserved.