public class RegionElementLocator extends BaseElementLocator<RegionObject>
| Modifier and Type | Field and Description |
|---|---|
protected RegionFactory |
regionFactory |
by, cachedElement, cachedElementList, fieldTypeInfo, logger, reflectionUtil, searchContext, shouldCache, vaniContext, waitUtil| Constructor and Description |
|---|
RegionElementLocator(org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By by,
boolean shouldCache,
FieldTypeInfo fieldTypeInfo,
RegionFactory regionFactory,
VaniContext vaniContext) |
| Modifier and Type | Method and Description |
|---|---|
RegionObject |
findElement()
This method will look only for one match and return it.
|
List<RegionObject> |
findElements()
This method will look for multiple matches and returns it as a list.
|
protected <T> List<T> |
resolve(List<org.openqa.selenium.WebElement> elements)
This method creates for each provided
WebElement an appropriate
RegionObject. |
protected <T> T |
resolve(org.openqa.selenium.WebElement element)
This method wraps specified root element with corresponding
RegionObject implementation |
executeContentWait, getRootElement, getWebDriver, mustRelocateCachedElementsprotected RegionFactory regionFactory
public RegionElementLocator(org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By by,
boolean shouldCache,
FieldTypeInfo fieldTypeInfo,
RegionFactory regionFactory,
VaniContext vaniContext)
public RegionObject findElement()
VaniElementLocatorfindElement in interface VaniElementLocator<RegionObject>findElement in class BaseElementLocator<RegionObject>public List<RegionObject> findElements()
VaniElementLocatorfindElements in interface VaniElementLocator<RegionObject>findElements in class BaseElementLocator<RegionObject>protected <T> T resolve(org.openqa.selenium.WebElement element)
RegionObject implementationelement - root element or NULL if no root is availableRegionObject specified by field typeprotected <T> List<T> resolve(List<org.openqa.selenium.WebElement> elements)
WebElement an appropriate
RegionObject. The type of RegionObject depends on generic
type of given list.
If current field doesn't declare a generic type,
NULL will be returned.
elements - RegionObject per provided element or
NULL will be returned if current field has no generic
type.Copyright © 2016. All rights reserved.