Class TreeItem

  • All Implemented Interfaces:
    org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsDriver

    public class TreeItem
    extends DesktopElement
    • Constructor Detail

      • TreeItem

        public TreeItem​(org.openqa.selenium.WebElement element)
    • Method Detail

      • items

        public List<TreeItem> items()
        All child "TreeItem" objects from this"TreeItem".
        Returns:
      • getText

        public String getText()
        The text of the "TreeItem".
        Specified by:
        getText in interface org.openqa.selenium.WebElement
        Overrides:
        getText in class org.openqa.selenium.remote.RemoteWebElement
        Returns:
      • expandCollapseState

        public ExpandCollapseState expandCollapseState()
        Gets the current expand / collapse state.
        Returns:
      • expand

        public void expand()
        Expands the element.
      • collapse

        public void collapse()
        Collapses the element.
      • select

        public void select()
        Selects the element.
      • addToSelection

        public TreeItem addToSelection()
        Add the element to the selection.
        Returns:
      • removeFromSelection

        public TreeItem removeFromSelection()
        Remove the element from the selection.
        Returns:
      • isChecked

        public boolean isChecked()
        Gets if the tree item is checked, if checking is supported.
        Returns:
      • setChecked

        public void setChecked​(boolean checked)
        Sets if the tree item is checked, if checking is supported.
        Parameters:
        checked -