TreeItem
flaui.core.automation_elements.TreeItem
Bases: AutomationElement
Class to interact with a treeitem element.
expand_collapse_state
property
Gets the current expand / collapse state.
Returns:
| Type | Description |
|---|---|
ExpandCollapseState
|
Current state enum object |
is_checked
property
writable
Gets if the tree item is checked, if checking is supported.
Returns:
| Type | Description |
|---|---|
bool
|
True if checked else False |
is_selected
property
Value to get/set if this element is selected.
Returns:
| Type | Description |
|---|---|
bool
|
True if selected else False |
items
property
All child TreeItem" /> objects from this TreeItem" />.
Returns:
| Type | Description |
|---|---|
List[TreeItem]
|
List of TreeItem elements |
text
property
The text of the TreeItem" />.
Returns:
| Type | Description |
|---|---|
str
|
Text value of element |