Class DocumentTreeElement


  • public class DocumentTreeElement
    extends TreeElement
    Page object used to interact with the document tree.
    Since:
    6.3RC1
    Version:
    $Id: e0212c60c7be4a5eb69baa0ebfcd8b54be50b5f3 $
    • Constructor Detail

      • DocumentTreeElement

        public 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.
        Parameters:
        element - the element that represents the document tree
    • Method Detail

      • openToSpace

        public DocumentTreeElement openToSpace​(String... path)
        Opens the tree to the specified space.
        Parameters:
        path - the path used to locate the space
        Returns:
        this tree
      • openToDocument

        public DocumentTreeElement openToDocument​(String... path)
        Opens the tree to the specified document.
        Parameters:
        path - the path used to locate the document
        Returns:
        this tree
      • waitForDocumentSelected

        public DocumentTreeElement waitForDocumentSelected​(String... path)
        Waits for the specified document to be selected.
        Parameters:
        path - the path used to locate the document to wait for
        Returns:
        this tree
        Since:
        7.2
      • hasSpace

        public boolean hasSpace​(String... path)
        Parameters:
        path - the path used to locate the space
        Returns:
        true if the specified space appears in the tree
      • hasDocument

        public boolean hasDocument​(String... path)
        Parameters:
        path - the path used to locate the document
        Returns:
        true if the specified document appears in the tree
      • hasAttachment

        public boolean hasAttachment​(String... path)
        Parameters:
        path - the path used to locate the attachment
        Returns:
        true if the specified attachment is present in the tree
      • getSpaceNode

        public TreeNodeElement getSpaceNode​(String... path)
        Parameters:
        path - the path used to locate the space
        Returns:
        the corresponding space node
      • getDocumentNode

        public TreeNodeElement getDocumentNode​(String... path)
        Parameters:
        path - the path used to locate the document
        Returns:
        the corresponding document node