public class TreeNodeElement extends BaseElement
Constructor and Description |
---|
TreeNodeElement(org.openqa.selenium.WebElement treeElement,
org.openqa.selenium.By locator)
Creates a new instance that can be used to interact with the tree node represented by the specified element.
|
Modifier and Type | Method and Description |
---|---|
TreeNodeElement |
close()
Closes this tree node.
|
TreeNodeElement |
deselect()
Deselects this tree node by clicking on its label.
|
List<TreeNodeElement> |
getChildren() |
String |
getId() |
String |
getLabel() |
boolean |
isLeaf() |
boolean |
isOpen() |
boolean |
isSelected() |
TreeNodeElement |
open()
Opens this tree node.
|
TreeNodeElement |
select()
Selects this tree node by clicking on its label.
|
TreeNodeElement |
waitForIt()
Wait as long as this node is in loading state.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage
public TreeNodeElement(org.openqa.selenium.WebElement treeElement, org.openqa.selenium.By locator)
treeElement
- the tree that contains this nodelocator
- the element that represents the tree nodepublic String getId()
public String getLabel()
public List<TreeNodeElement> getChildren()
public boolean isLeaf()
true
if this node is a leaf (no children), false
otherwisepublic boolean isOpen()
true
if this node is opened (children are visible), false
otherwisepublic boolean isSelected()
true
if this node is selected, false
otherwisepublic TreeNodeElement open()
public TreeNodeElement close()
public TreeNodeElement select()
public TreeNodeElement deselect()
public TreeNodeElement waitForIt()
Copyright © 2004–2019 XWiki. All rights reserved.