| Package | Description |
|---|---|
| net.thucydides.core.annotations.locators | |
| net.thucydides.core.pages |
Classes designed to make it easier to work with Page Objects in WebDriver.
|
| net.thucydides.core.webdriver |
Manage WebDriver instances, and knowing what WebDriver types are supported.
|
| Modifier and Type | Field and Description |
|---|---|
protected PageObject |
SmartFieldDecorator.pageObject |
| Modifier and Type | Method and Description |
|---|---|
void |
SmartElementProxyCreator.proxyElements(PageObject pageObject,
org.openqa.selenium.WebDriver driver) |
void |
SmartElementProxyCreator.proxyElements(PageObject pageObject,
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds) |
| Constructor and Description |
|---|
SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory,
org.openqa.selenium.WebDriver driver,
PageObject pageObject) |
| Modifier and Type | Class and Description |
|---|---|
class |
AnyPage
A page object that can represent any page, without specifiying the exact page.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends PageObject> |
Pages.currentPageAt(Class<T> pageObjectClass) |
<T extends PageObject> |
Pages.get(Class<T> pageObjectClass) |
<T extends PageObject> |
Pages.getAt(Class<T> pageObjectClass) |
<T extends PageObject> |
Pages.getPage(Class<T> pageObjectClass) |
<T extends PageObject> |
PageObject.switchToPage(Class<T> pageObjectClass) |
| Modifier and Type | Method and Description |
|---|---|
PageObject |
PageObject.waitFor(org.openqa.selenium.support.ui.ExpectedCondition expectedCondition) |
PageObject |
PageObject.waitFor(String xpathOrCssSelector) |
PageObject |
PageObject.waitForAbsenceOf(String xpathOrCssSelector) |
PageObject |
PageObject.waitForAllTextToAppear(String... expectedTexts)
Waits for all of a number of text blocks to appear on the screen.
|
PageObject |
PageObject.waitForAnyRenderedElementOf(org.openqa.selenium.By... expectedElements) |
PageObject |
PageObject.waitForAnyTextToAppear(String... expectedText)
Waits for any of a number of text blocks to appear anywhere on the
screen.
|
PageObject |
PageObject.waitForAnyTextToAppear(org.openqa.selenium.WebElement element,
String... expectedText) |
PageObject |
PageObject.waitForPresenceOf(String xpathOrCssSelector) |
PageObject |
PageObject.waitForRenderedElements(org.openqa.selenium.By byElementCriteria) |
PageObject |
PageObject.waitForRenderedElementsToBePresent(org.openqa.selenium.By byElementCriteria) |
PageObject |
PageObject.waitForRenderedElementsToDisappear(org.openqa.selenium.By byElementCriteria) |
PageObject |
PageObject.waitForTextToAppear(String expectedText)
Waits for a given text to appear anywhere on the page.
|
PageObject |
PageObject.waitForTextToAppear(org.openqa.selenium.WebElement element,
String expectedText)
Waits for a given text to appear anywhere on the page.
|
PageObject |
PageObject.waitForTextToDisappear(String expectedText) |
PageObject |
PageObject.waitForTextToDisappear(String expectedText,
long timeout)
Waits for a given text to not be anywhere on the page.
|
PageObject |
PageObject.waitForTextToDisappear(org.openqa.selenium.WebElement element,
String expectedText)
Waits for a given text to appear anywhere on the page.
|
PageObject |
PageObject.waitForTitleToAppear(String expectedTitle) |
PageObject |
PageObject.waitForTitleToDisappear(String expectedTitle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Pages.isCurrentPageAt(Class<? extends PageObject> pageObjectClass) |
| Constructor and Description |
|---|
MatchingPageExpressions(PageObject pageObject) |
| Constructor and Description |
|---|
PageObject(org.openqa.selenium.WebDriver driver,
com.google.common.base.Predicate<PageObject> callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultPageObjectInitialiser.apply(PageObject page) |
void |
WebDriverFactory.initElementsWithAjaxSupport(PageObject pageObject,
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds)
Initialize a page object's fields using the specified WebDriver instance.
|
void |
ElementProxyCreator.proxyElements(PageObject pageObject,
org.openqa.selenium.WebDriver driver) |
void |
ElementProxyCreator.proxyElements(PageObject pageObject,
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds) |
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.