public class SeleniumWTableWebElement extends SeleniumWComponentWebElement
| Modifier and Type | Field and Description |
|---|---|
static String |
ROWS_PER_PAGE_TABLE_ATTRIBUTE
The attribute on the table tag that records how many rows per page.
|
static String |
SELECTOR_CELL_CONTENT
The CSS Selector to find the cell content.
|
static String |
SELECTOR_COLUMN_HEADER
The CSS Selector to find a particular column header.
|
static String |
SELECTOR_COLUMN_HEADER_TEXT
The CSS Selector to find a particular column header's text.
|
static String |
SELECTOR_FIRST_PAGE_BUTTON
The CSS Selector to find the first page button.
|
static String |
SELECTOR_FIRST_ROW_INDEX_OF_PAGE
The CSS Selector to find the first row index of page.
|
static String |
SELECTOR_LAST_PAGE_BUTTON
The CSS Selector to find the last page button.
|
static String |
SELECTOR_LAST_ROW_INDEX_OF_PAGE
The CSS Selector to find the last row index of page.
|
static String |
SELECTOR_NEXT_PAGE_BUTTON
The CSS Selector to find the next page button.
|
static String |
SELECTOR_PAGE_SELECT
The CSS Selector for the page select.
|
static String |
SELECTOR_PREVIOUS_PAGE_BUTTON
The CSS Selector to find the previous page button.
|
static String |
SELECTOR_ROWS_PER_PAGE_SELECT
The CSS Selector for the rows per page select.
|
static String |
SELECTOR_TABLE_CAPTION
The CSS Selector for the table caption.
|
static String |
SELECTOR_TOTAL_ROWS
The CSS Selector to find the last result of page.
|
static String |
TABLE_CHILD_TAG_NAME
The incorrect tag name that might be selected - the name of the child table element.
|
static String |
TABLE_DIV_CLASS
The div class representing the table.
|
static String |
TABLE_HEADER_TAG_NAME
The tag name for the header.
|
static String |
TABLE_TAG_NAME
The table itself is a 'table' entity, but the element containing all the controls is the wrapper div.
|
| Constructor and Description |
|---|
SeleniumWTableWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Default constructor for this element.
|
clear, click, clickElementNoWait, clickNoWait, findElement, findElementImmediate, findElements, findElementsImmediate, getActiveId, getAttribute, getCssValue, getDriver, getElement, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getUserContextForSession, isDisplayed, isEnabled, isHidden, isSelected, sendKeys, sendKeys, submit, waitForPageReady, wrapElementpublic static final String TABLE_TAG_NAME
public static final String TABLE_CHILD_TAG_NAME
public static final String TABLE_HEADER_TAG_NAME
public static final String TABLE_DIV_CLASS
public static final String ROWS_PER_PAGE_TABLE_ATTRIBUTE
public static final String SELECTOR_TABLE_CAPTION
public static final String SELECTOR_FIRST_ROW_INDEX_OF_PAGE
public static final String SELECTOR_LAST_ROW_INDEX_OF_PAGE
public static final String SELECTOR_TOTAL_ROWS
public static final String SELECTOR_FIRST_PAGE_BUTTON
public static final String SELECTOR_PREVIOUS_PAGE_BUTTON
public static final String SELECTOR_NEXT_PAGE_BUTTON
public static final String SELECTOR_LAST_PAGE_BUTTON
public static final String SELECTOR_PAGE_SELECT
public static final String SELECTOR_ROWS_PER_PAGE_SELECT
public static final String SELECTOR_COLUMN_HEADER
public static final String SELECTOR_COLUMN_HEADER_TEXT
public static final String SELECTOR_CELL_CONTENT
public SeleniumWTableWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the WebElementdriver - the driver.public int getFirstRowIndexOfPage()
public int getLastRowIndexOfPage()
public int getTotalRows()
public SeleniumWComponentWebElement getTable()
public SeleniumWComponentWebElement getFirstPageButton()
public SeleniumWComponentWebElement getPreviousPageButton()
public SeleniumWComponentWebElement getNextPageButton()
public SeleniumWComponentWebElement getLastPageButton()
public SeleniumSimpleSelectWebElement getPageSelect()
public SeleniumSimpleSelectWebElement getRowsPerPageSelect()
public int getCurrentPage()
public int getTotalPages()
public int getRowsPerPage()
public String getTableCaption()
public SeleniumWComponentWebElement getTableHeader()
public SeleniumWComponentWebElement getHeaderForColumn(int columnIndex)
columnIndex - the column index.public String getHeaderTextForColumn(int columnIndex)
columnIndex - the column index.public SeleniumWComponentWebElement getCellContent(int rowIndex, int columnIndex)
rowIndex - the row index, 0-based.columnIndex - the column index, 0-based.public String getCellText(int rowIndex, int columnIndex)
rowIndex - the row index, 0-based.columnIndex - the column index, 0-based.public SeleniumSimpleSelectWebElement findSeleniumSimpleSelectWebElement(org.openqa.selenium.By by)
by - the by to find the component.Copyright © 2018. All rights reserved.