Constructor and Description |
---|
TableView(Page parentValue,
org.openqa.selenium.By locatorValue)
Default constructor which binds page the control belongs to and the locator to
find the element on page.
|
Modifier and Type | Method and Description |
---|---|
Control |
getItem(int index)
Generates and returns control object which corresponds to the compound object
item specified by index.
|
int |
getItemsCount()
Calculates and returns the available items count.
|
Control |
getSubItem(java.lang.String name,
int index)
Overloaded
getSubItem(String, int, Class) which retrieves returning
control type from the sub-item data. |
<T extends Control> |
getSubItem(java.lang.String name,
int index,
java.lang.Class<T> itemType)
Common method which generates control object for specific sub-item of specific type.
|
org.openqa.selenium.By |
getSubItemLocator(java.lang.String name,
int index)
Provides fully qualified locator for sub-item for specified index and name.
|
boolean |
isEmpty()
Checks if current compound element doesn't contains any items.
|
boolean |
isEmpty(int timeout)
Checks if current compound element doesn't contains any items.
|
boolean |
isNotEmpty()
Checks if current compound element contains any items.
|
boolean |
isNotEmpty(int timeout)
Checks if current compound element contains any items.
|
addSubItems, element, element, get, getDriver, getFormat, getItemLocatorText, getLocator, getLocatorText, getParent, getRect, getScrollDirection, getScrollTo, getText, getValue, is, isExcludeFromSearch, perform, scrollTo, setExcludeFromSearch, setFormat, setItemLocatorText, setScrollDirection, setScrollTo, verify, waitUntil
public TableView(Page parentValue, org.openqa.selenium.By locatorValue)
parentValue
- the instance of the page class containing current control.locatorValue
- the string used to locate current control.public int getItemsCount()
public Control getItem(int index)
index
- the item order number.public boolean isNotEmpty(int timeout)
timeout
- time limit to wait.public boolean isNotEmpty()
public boolean isEmpty(int timeout)
timeout
- time limit to wait.public boolean isEmpty()
public org.openqa.selenium.By getSubItemLocator(java.lang.String name, int index)
name
- the sub-item name.index
- the item index.public <T extends Control> T getSubItem(java.lang.String name, int index, java.lang.Class<T> itemType) throws java.lang.Exception
T
- the control class to cast sub-item control to.name
- the sub-item name.index
- the item index.itemType
- the control type to cast sub-item instance to.java.lang.Exception
- class cast exceptions.public Control getSubItem(java.lang.String name, int index) throws java.lang.Exception
getSubItem(String, int, Class)
which retrieves returning
control type from the sub-item data.name
- sub-item name.index
- item index.java.lang.Exception
- class cast exceptions.