Modifier and Type | Class and Description |
---|---|
class |
Document
Represents an HTML document and provides convenience methods for accessing forms, tables, and pagination.
|
Modifier and Type | Field and Description |
---|---|
Element |
Form.element |
Element |
Table.tableElement |
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.
|
Element |
Elements.findFirst(String query)
Searches all descendant elements and retrieves the first one found to match the query.
|
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.getElement(int index)
Returns the child element at the position denoted by the specified index.
|
Element |
Elements.getElement(int index)
Returns the element at the specified index.
|
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.
|
Element |
Elements.getFirst(String query)
Searches only child elements (not all descendants) and retrieves the first child element that was found to match the query.
|
Element |
Element.getParent()
Returns the parent element or null if a parent element does not exist.
|
Element |
Element.getRoot()
Return the ancestor Element who's parent is null (ie, the root element).
|
Element |
Table.getTableElement()
Returns the table element for this Table.
|
Element |
Element.nextElementSibling()
Returns the next element that is a sibling (shares the same parent), or null if none exists.
|
Element |
Element.previousElementSibling()
Returns the previous element that is a sibling (shares the same parent), or null if none exists.
|
Element |
Node.toElement()
Returns this node cast to an Element.
|
Element |
Browser.wrap(org.openqa.selenium.WebElement we)
Creates and returns a new Element instance by wrapping the specified WebElement.
|
Modifier and Type | Method and Description |
---|---|
List<Element> |
Element.getChildElements()
Returns a list of child Elements, or an empty list if no child elements exist.
|
Iterator<Element> |
Element.iterator()
Returns an iterator over the child elements.
|
Iterator<Element> |
Elements.iterator()
Returns an iterator over the child Elements.
|
List<Element> |
Elements.toList()
Returns the child Elements as a List.
|
Modifier and Type | Method and Description |
---|---|
Form |
Document.getForm(Element formElement) |
Table |
Document.getTable(Element tableElement) |
Constructor and Description |
---|
Table(Element tableElement)
Constructs a table component from the specified table element.
|