Modifier and Type | Method and Description |
---|---|
Element |
Element.findFirst(String query)
Searches all descendant elements and retrieves the first one found to match the query.
|
String |
Element.getAt(String attributeName)
Returns the attribute value for the specified (case insensitive) attribute name and throws a NotFound Exception if no such attribute name exists or if the attribute value is null; relative URLs are expanded into absolute URLs.
|
Element |
Table.getCell(int colIndex,
int rowIndex)
Returns the
td/th element that exists at the intersection point of the specified column index and the row index. |
Element |
Table.getCell(String x_regex,
String y_regex)
Returns the
td/th element that exists at the intersection point of the first column containing text that matches the specified x_regex and the first row containing text that matches the specified y_regex. |
Element |
Element.getFirst(String query)
Searches only child elements (not all descendants) and retrieves the first child element that was found to match the query.
|
Form |
Document.getForm(Element formElement) |
Form |
Document.getForm(int formIndex)
Creates and returns a Form object to represent the HTML form denoted by the specified formIndex.
|
Form |
Document.getForm(String tagQuery)
Returns an instance of class Form for the first form in the document that is matched by the specified tagQuery.
|
Form |
Document.getForm(org.openqa.selenium.WebElement formElement) |
Form |
Document.getFormByButtons(String... buttonText)
Returns a Form object for the first form Element in the document that contains buttons who's text/values are matched (case insensitive, whitespace-normalized) by the specified text, or throws a NotFound Exception.
|
Table |
Document.getTable(Element tableElement) |
Table |
Document.getTable(String tagQuery)
Returns an instance of type Table that relates to the first table in the document that matches the specified tagQuery.
|
Table |
Document.getTable(org.openqa.selenium.WebElement tableElement) |
Table |
Document.getTableByText(String... regex)
Returns a Table object for the first table Element in the document that contains th/td elements who's visible text is matched by the specified text, or throws a NotFound Exception.
|
List<String> |
Table.getTextFromColumn(String regex)
Returns a List containing the visible text of the cells from the target column, where the target column is the first one having a cell who's visible text matches the specified (case-insensitive) regex (using Matcher.matches); returned text values are obtained using Element.getText() and are trimmed of whitespace;
|
List<String> |
Table.getTextFromRow(String regex)
Returns a List containing the visible text of the cells from the target row, where the target row is the first one having a cell who's visible text matches the specified (case-insensitive) regex (using Matcher.matches); returned text values are obtained using Element.getText() and are trimmed of whitespace;
|
Document |
Form.submit(String buttonText)
Submits the the form by clicking the first submit button who's value (ie, text label) matches the specified (case-insensitive) buttonText and throws a NotFound Exception if it does not exist.
|