public class Table extends InteractiveElement implements ITable
Element.HIGHLIGHT_MODES
Constructor and Description |
---|
Table(org.openqa.selenium.By locator) |
Table(String locator) |
Modifier and Type | Method and Description |
---|---|
int |
getRowNumber(Map<String,String> item)
Implementing this element would allow for getting the row number in a
table that contains specific information
|
int |
getTableColumnCount()
Implementing this method would allow for getting the total number of
columns in the table
|
List<String[]> |
getTableDataInArray()
Retrieves the entire HTML table data within tbody (visible data)
|
List<Map<String,String>> |
getTableDataInMap()
Implementing this method would allow for getting all of text in the table
as a map
|
List<String> |
getTableHeaders()
Implementing this method would allow for obtaining all of the headers in
a table
|
String |
getTableRowColumnData(int rowNumber,
int columnNumber)
Implementing this method would allow for getting data from a specific
cell in the table
|
int |
getTableRowCount()
Implementing this method would allow for getting the total number of rows
in the table
|
boolean |
isItemExist(Map<String,String> item)
Implementing this method would allow for checking the table to see if an
item is present in a table
|
click, clickAndHold, doubleClick, dragAndDrop, dragAndDropByOffset, getLabel, getValue, isEnabled, keyDown, keyUp, mouseMove, mouseMoveOut, mouseOver, releaseClickAndHold, rightClick, sendKeys, type, typeAppend
eval, findElement, fireEvent, focusOn, getAttribute, getByLocator, getChildNodesValuesText, getCssValue, getGUIDriver, getInnerHTML, getLocationX, getLocationY, getLocator, getText, getWebElement, hasText, highlight, highlight, highlight, isAttributePresent, isElementNotPresent, isElementNotPresent, isElementPresent, isElementPresent, isElementPresent, isElementVisible, isElementVisible, isWithinBoundsOfWindow, scrollTo, setGUIDriver, waitForAttribute, waitForAttribute, waitForAttributeEqualTo, waitForAttributeEqualTo, waitForAttributeNotEqualTo, waitForAttributeNotEqualTo, waitForCommand, waitForElementNotPresent, waitForElementNotPresent, waitForElementPresent, waitForElementPresent, waitForEnabled, waitForEnabled, waitForNotAttribute, waitForNotAttribute, waitForNotVisible, waitForNotVisible, waitForText, waitForText, waitForVisible, waitForVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
click, clickAndHold, doubleClick, dragAndDrop, dragAndDropByOffset, isEnabled, keyDown, keyUp, mouseMove, mouseMoveOut, mouseOver, releaseClickAndHold, rightClick, sendKeys, type, typeAppend
getLabel, getValue
eval, fireEvent, focusOn, getAttribute, getByLocator, getChildNodesValuesText, getCssValue, getInnerHTML, getLocationX, getLocationY, getLocator, getText, getWebElement, hasText, highlight, highlight, isAttributePresent, isElementNotPresent, isElementNotPresent, isElementPresent, isElementPresent, isElementPresent, isElementVisible, isElementVisible, isWithinBoundsOfWindow, scrollTo, waitForAttribute, waitForAttribute, waitForAttributeEqualTo, waitForAttributeEqualTo, waitForAttributeNotEqualTo, waitForAttributeNotEqualTo, waitForElementNotPresent, waitForElementNotPresent, waitForElementPresent, waitForElementPresent, waitForEnabled, waitForEnabled, waitForNotAttribute, waitForNotAttribute, waitForNotVisible, waitForNotVisible, waitForText, waitForText, waitForVisible, waitForVisible
public Table(String locator) throws WidgetException
locator
- XPath, ID, name, CSS Selector, class name, or tag nameWidgetException
public Table(org.openqa.selenium.By locator) throws WidgetException
locator
- XPath, ID, name, CSS Selector, class name, or tag nameWidgetException
public List<String> getTableHeaders() throws WidgetException
ITable
getTableHeaders
in interface ITable
WidgetException
public String getTableRowColumnData(int rowNumber, int columnNumber) throws WidgetException
ITable
getTableRowColumnData
in interface ITable
rowNumber
- - the desired row in the tablecolumnNumber
- - the desired column in the tableWidgetException
public List<String[]> getTableDataInArray() throws WidgetException
getTableDataInArray
in interface ITable
WidgetException
public List<Map<String,String>> getTableDataInMap() throws WidgetException
ITable
getTableDataInMap
in interface ITable
WidgetException
public int getTableRowCount() throws WidgetException
ITable
getTableRowCount
in interface ITable
WidgetException
public boolean isItemExist(Map<String,String> item) throws WidgetException
ITable
isItemExist
in interface ITable
item
- - the mapWidgetException
public int getRowNumber(Map<String,String> item) throws WidgetException
ITable
getRowNumber
in interface ITable
item
- - a map used to check against each row until a match is foundWidgetException
public int getTableColumnCount() throws WidgetException
ITable
getTableColumnCount
in interface ITable
WidgetException
Copyright © 2018. All rights reserved.