| Package | Description |
|---|---|
| net.serenitybdd.core.pages | |
| net.serenitybdd.core.steps | |
| 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.steps |
Base class to be used when writing a library of resuable test steps.
|
| net.thucydides.core.webdriver |
Manage WebDriver instances, and knowing what WebDriver types are supported.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AnyPage
A page object that can represent any page, without specifiying the exact page.
|
class |
PageComponent
Represents a coherent group of fields or elements on a page.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends PageObject> |
PageObjects.ofType(Class<T> pageObjectClass) |
<T extends PageObject> |
PageObject.setDriver(org.openqa.selenium.WebDriver driver) |
<T extends PageObject> |
PageObject.switchToPage(Class<T> pageObjectClass)
Deprecated.
|
<T extends PageObject> |
PageObject.withDriver(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
static PageObject |
PageObject.fromSearchContext(org.openqa.selenium.SearchContext searchContext) |
PageObject |
WidgetObject.getPage()
Get the page containing this widget.
|
PageObject |
WidgetObjectImpl.getPage() |
PageObject |
PageObject.waitFor(String xpathOrCssSelector) |
PageObject |
PageObject.waitFor(String xpathOrCssSelector,
Object firstArgument,
Object... arguments) |
PageObject |
PageObject.waitForAbsenceOf(org.openqa.selenium.By byLocator) |
PageObject |
PageObject.waitForAbsenceOf(String xpathOrCssSelector,
Object... arguments) |
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,
Object... arguments) |
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(String expectedText,
long timeout)
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 inside the element.
|
PageObject |
PageObject.waitForTextToDisappear(String expectedText) |
PageObject |
PageObject.waitForTextToDisappear(String expectedText,
long timeoutInMilliseconds)
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 disappear from the element.
|
PageObject |
PageObject.waitForTitleToAppear(String expectedTitle) |
PageObject |
PageObject.waitForTitleToDisappear(String expectedTitle) |
| Modifier and Type | Method and Description |
|---|---|
WaitForBuilder<? extends PageObject> |
PageObject.waitFor(int duration) |
| Modifier and Type | Method and Description |
|---|---|
ListOfWebElementFacades |
FindAllWithRetry.find(Function<PageObject,ListOfWebElementFacades> finder,
PageObject page) |
ListOfWebElementFacades |
ResolvableElement.resolveAllFor(PageObject page) |
WebElementFacade |
ResolvableElement.resolveFor(PageObject pageObject) |
void |
ListOfWebElementFacades.setFallback(Function<PageObject,ListOfWebElementFacades> fallbackMethod,
PageObject page) |
| Modifier and Type | Method and Description |
|---|---|
ListOfWebElementFacades |
FindAllWithRetry.find(Function<PageObject,ListOfWebElementFacades> finder,
PageObject page) |
void |
ListOfWebElementFacades.setFallback(Function<PageObject,ListOfWebElementFacades> fallbackMethod,
PageObject page) |
| Constructor and Description |
|---|
MatchingPageExpressions(PageObject pageObject) |
OpenWithParams(PageObject pageObject,
String urlTemplateName) |
RenderedPageObjectView(org.openqa.selenium.WebDriver driver,
PageObject pageObject,
Duration waitForTimeout,
boolean timeoutCanBeOverriden) |
RenderedPageObjectView(org.openqa.selenium.WebDriver driver,
PageObject pageObject,
long waitForTimeoutInMilliseconds) |
WaitingBuilder(int timeout,
PageObject page) |
WebElementFacadeWait(PageObject page) |
WebElementFacadeWait(PageObject page,
long timeoutInSeconds) |
WebElementFacadeWait(PageObject page,
long timeoutInSeconds,
long sleepInMillis) |
WidgetObjectImpl(PageObject page,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
long timeoutInMilliseconds) |
WidgetObjectImpl(PageObject page,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement webElement,
long timeoutInMilliseconds) |
| Constructor and Description |
|---|
PageObject(org.openqa.selenium.WebDriver driver,
com.google.common.base.Predicate<? super PageObject> callback) |
| Modifier and Type | Class and Description |
|---|---|
class |
UIInteractions
An action class designed to interact an application via the UI
(This is a synonym for UIInteractionSteps)
|
class |
UIInteractionSteps
An action class designed to interact an application via the UI
|
class |
UIQuerySteps
An action class designed to query an application via the UI
|
class |
WebDriverScenarios
A convenience class that can be used for very simple web tests, e.g.
|
| Modifier and Type | Field and Description |
|---|---|
protected PageObject |
AbstractListItemHandler.page |
protected PageObject |
AbstractSingleItemHandler.page |
protected PageObject |
SmartFieldDecorator.page |
| 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 |
|---|
AbstractListItemHandler(Class<T> targetInterface,
Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement element,
PageObject page,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds)
Constructor.
|
AbstractSingleItemHandler(Class<T> targetInterface,
Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
PageObject page) |
SmartElementHandler(Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
PageObject page) |
SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory,
org.openqa.selenium.WebDriver driver,
PageObject pageObject) |
SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory,
org.openqa.selenium.WebDriver driver,
PageObject pageObject,
CustomFindByAnnotationProviderService customFindByAnnotationProviderService) |
SmartListHandler(ClassLoader loader,
Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
PageObject page,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
SmartWidgetHandler(Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
PageObject page) |
WebElementFacadeListItemHandler(Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement element,
PageObject page,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
WidgetListItemHandler(Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement element,
PageObject page,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
| Modifier and Type | Class and Description |
|---|---|
class |
PageObject
A base class representing a WebDriver page object.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends PageObject> |
PageFactory.createPageOfType(Class<T> pageObjectClass)
Create a new Page Object of the given type.
|
<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) |
static <T extends PageObject> |
Pages.instrumentedPageObjectUsing(Class<T> pageObjectClass,
org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Pages.isCurrentPageAt(Class<? extends PageObject> pageObjectClass) |
| Constructor and Description |
|---|
PageObject(org.openqa.selenium.WebDriver driver,
com.google.common.base.Predicate<? super PageObject> callback) |
| Modifier and Type | Class and Description |
|---|---|
class |
PageObjectStepDelayer<T extends PageObject> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultPageObjectInitialiser.apply(PageObject page) |
void |
ElementProxyCreator.proxyElements(PageObject pageObject,
org.openqa.selenium.WebDriver driver) |
void |
ElementProxyCreator.proxyElements(PageObject pageObject,
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds) |
Copyright © 2022. All rights reserved.