public class TreeElement extends BaseElement
Constructor and Description |
---|
TreeElement(org.openqa.selenium.WebElement element)
Creates a new instance that can be used to interact with the tree represented by the given element.
|
Modifier and Type | Method and Description |
---|---|
TreeElement |
clearSelection()
Clear the selection in the tree.
|
protected org.openqa.selenium.WebElement |
getElement() |
TreeNodeElement |
getNode(String nodeId) |
List<String> |
getNodeIDs() |
List<String> |
getSelectedNodeIDs() |
List<TreeNodeElement> |
getTopLevelNodes() |
boolean |
hasNode(String nodeId) |
TreeElement |
openTo(String nodeId)
Open the tree to the specified node and select it.
|
void |
selectNodes(TreeNodeElement... nodes)
Allow to select multiple nodes at once by maintaining ctrl key pressed while clicking on nodes.
|
TreeElement |
waitForIt()
Wait as long as the tree in busy (loading).
|
TreeElement |
waitForNodeSelected(String nodeId)
Waits for the specified node to be selected.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public TreeElement(org.openqa.selenium.WebElement element)
element
- the element that represents the treepublic TreeNodeElement getNode(String nodeId)
nodeId
- the node identifierpublic boolean hasNode(String nodeId)
nodeId
- the node identifiertrue
if the specified node is present (loaded), false
otherwisepublic TreeElement openTo(String nodeId)
nodeId
- the node to open topublic TreeElement clearSelection()
public TreeElement waitForIt()
public TreeElement waitForNodeSelected(String nodeId)
nodeId
- the id of the node to wait forprotected org.openqa.selenium.WebElement getElement()
public void selectNodes(TreeNodeElement... nodes)
nodes
- the nodes to select.public List<TreeNodeElement> getTopLevelNodes()
Copyright © 2004–2021 XWiki. All rights reserved.