Skip to content

ListBoxItem

flaui.core.automation_elements.ListBoxItem

Bases: SelectionItemAutomationElement

Class to interact with a list box item element

is_checked property writable

Gets if the listbox item is checked, if checking is supported

Returns:

Type Description
bool

True if checked, else False

text property

Gets the text of the element.

Returns:

Type Description
str

Element text

scroll_into_view()

Scrolls the element into view.

Returns:

Type Description
ListBoxItem

ListBoxItem element

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def scroll_into_view(self) -> ListBoxItem:
    """Scrolls the element into view.

    :return: ListBoxItem element
    """
    return ListBoxItem(raw_element=self.raw_element.ScrollIntoView())