public class DocumentTreeElement extends TreeElement
Constructor and Description |
---|
DocumentTreeElement(org.openqa.selenium.WebElement element)
Creates a new instance that can be used to interact with the document tree represented by the given element.
|
Modifier and Type | Method and Description |
---|---|
DocumentTreeElement |
clearSelection() |
TreeNodeElement |
getAttachmentNode(String... path) |
TreeNodeElement |
getDocumentNode(String... path) |
TreeNodeElement |
getSpaceNode(String... path) |
boolean |
hasAttachment(String... path) |
boolean |
hasDocument(String... path) |
boolean |
hasSpace(String... path) |
DocumentTreeElement |
openTo(String nodeId) |
DocumentTreeElement |
openToAttachment(String... path)
Opens the tree to the specified attachment.
|
DocumentTreeElement |
openToDocument(String... path)
Opens the tree to the specified document.
|
DocumentTreeElement |
openToSpace(String... path)
Opens the tree to the specified space.
|
DocumentTreeElement |
waitForDocumentSelected(String... path)
Waits for the specified document to be selected.
|
DocumentTreeElement |
waitForIt() |
getElement, getNode, getNodeIDs, getSelectedNodeIDs, getTopLevelNodes, hasNode, selectNodes, waitForNodeSelected
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public DocumentTreeElement(org.openqa.selenium.WebElement element)
element
- the element that represents the document treepublic DocumentTreeElement openTo(String nodeId)
openTo
in class TreeElement
public DocumentTreeElement clearSelection()
clearSelection
in class TreeElement
public DocumentTreeElement openToSpace(String... path)
path
- the path used to locate the spacepublic DocumentTreeElement openToDocument(String... path)
path
- the path used to locate the documentpublic DocumentTreeElement openToAttachment(String... path)
path
- the path used to locate the attachmentpublic DocumentTreeElement waitForIt()
waitForIt
in class TreeElement
public DocumentTreeElement waitForDocumentSelected(String... path)
path
- the path used to locate the document to wait forpublic boolean hasSpace(String... path)
path
- the path used to locate the spacetrue
if the specified space appears in the treepublic boolean hasDocument(String... path)
path
- the path used to locate the documenttrue
if the specified document appears in the treepublic boolean hasAttachment(String... path)
path
- the path used to locate the attachmenttrue
if the specified attachment is present in the treepublic TreeNodeElement getSpaceNode(String... path)
path
- the path used to locate the spacepublic TreeNodeElement getDocumentNode(String... path)
path
- the path used to locate the documentpublic TreeNodeElement getAttachmentNode(String... path)
path
- the path used to locate the attachmentCopyright © 2004–2021 XWiki. All rights reserved.