Package FlaNium.WinAPI.elements
Class TreeItem
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- FlaNium.WinAPI.DesktopElement
-
- FlaNium.WinAPI.elements.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringTREE_ITEM_ADD_TO_SELECTIONstatic StringTREE_ITEM_COLLAPSEstatic StringTREE_ITEM_EXPANDstatic StringTREE_ITEM_EXPAND_COLLAPSE_STATEstatic StringTREE_ITEM_GET_TEXTstatic StringTREE_ITEM_IS_CHECKEDstatic StringTREE_ITEM_ITEMSstatic StringTREE_ITEM_REMOVE_FROM_SELECTIONstatic StringTREE_ITEM_SELECTstatic StringTREE_ITEM_SET_CHECKED
-
Constructor Summary
Constructors Constructor Description TreeItem(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeItemaddToSelection()Add the element to the selection.voidcollapse()Collapses the element.voidexpand()Expands the element.ExpandCollapseStateexpandCollapseState()Gets the current expand / collapse state.StringgetText()The text of the "TreeItem".booleanisChecked()Gets if the tree item is checked, if checking is supported.List<TreeItem>items()All child "TreeItem" objects from this"TreeItem".TreeItemremoveFromSelection()Remove the element from the selection.voidselect()Selects the element.voidsetChecked(boolean checked)Sets if the tree item is checked, if checking is supported.-
Methods inherited from class FlaNium.WinAPI.DesktopElement
callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callVoidCommand, castTo, createLocalDateTimeFromResponse, createRemoteWebElementFromResponse, createRemoteWebElementsFromResponse, exe, execute, getActiveWindow, getAttribute, getElementRect, getName, mouseActions, parseDateTime, parseDouble, screenshotActions, setAsRootElement, toCoordinateElement, touchActions
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, click, equals, execute, findElement, findElement, findElements, findElements, getAccessibleName, getAriaRole, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
-
-
-
-
Field Detail
-
TREE_ITEM_ITEMS
public static final String TREE_ITEM_ITEMS
- See Also:
- Constant Field Values
-
TREE_ITEM_GET_TEXT
public static final String TREE_ITEM_GET_TEXT
- See Also:
- Constant Field Values
-
TREE_ITEM_EXPAND_COLLAPSE_STATE
public static final String TREE_ITEM_EXPAND_COLLAPSE_STATE
- See Also:
- Constant Field Values
-
TREE_ITEM_EXPAND
public static final String TREE_ITEM_EXPAND
- See Also:
- Constant Field Values
-
TREE_ITEM_COLLAPSE
public static final String TREE_ITEM_COLLAPSE
- See Also:
- Constant Field Values
-
TREE_ITEM_SELECT
public static final String TREE_ITEM_SELECT
- See Also:
- Constant Field Values
-
TREE_ITEM_ADD_TO_SELECTION
public static final String TREE_ITEM_ADD_TO_SELECTION
- See Also:
- Constant Field Values
-
TREE_ITEM_REMOVE_FROM_SELECTION
public static final String TREE_ITEM_REMOVE_FROM_SELECTION
- See Also:
- Constant Field Values
-
TREE_ITEM_IS_CHECKED
public static final String TREE_ITEM_IS_CHECKED
- See Also:
- Constant Field Values
-
TREE_ITEM_SET_CHECKED
public static final String TREE_ITEM_SET_CHECKED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getText
public String getText()
The text of the "TreeItem".- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement- Overrides:
getTextin classorg.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-
-
-