Skip to content

Slider

flaui.core.automation_elements.Slider

Bases: AutomationElement

Class to interact with a slider element

is_only_value property

Flag which indicates if the Slider supports range values (min->max) or only values (0-100). Only values are for example used when combining UIA3 and WinForms applications.

Returns:

Type Description
bool

True if only value else False

large_change property

The value of a large change.

Returns:

Type Description
float

Large change

maximum property

The maximum value.

Returns:

Type Description
float

Maximum value

minimum property

The minimum value.

Returns:

Type Description
float

Minimum value

small_change property

The value of a small change.

Returns:

Type Description
float

Small change

thumb property

The element used to drag.

Returns:

Type Description
Thumb

Thumb element

value property writable

Gets the current value.

Returns:

Type Description
float

Value of the element

large_decrease_button()

The button element used to perform a large decrement.

Returns:

Type Description
Button

Button element

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def large_decrease_button(self) -> Button:
    """The button element used to perform a large decrement.

    :return: Button element
    """
    return Button(raw_element=self.raw_element.LargeDecreaseButton())

large_decrement()

Performs a large decrement.

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def large_decrement(self):
    """Performs a large decrement."""
    self.raw_element.LargeDecrement()

large_increase_button()

The button element used to perform a large increment.

Returns:

Type Description
Button

Button element

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def large_increase_button(self) -> Button:
    """The button element used to perform a large increment.

    :return: Button element
    """
    return Button(raw_element=self.raw_element.LargeIncreaseButton())

large_increment()

Performs a large increment.

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def large_increment(self):
    """Performs a large increment."""
    self.raw_element.LargeIncrement()

small_decrement()

Performs a small decrement.

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def small_decrement(self):
    """Performs a small decrement."""
    self.raw_element.SmallDecrement()

small_increment()

Performs a small increment.

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def small_increment(self):
    """Performs a small increment."""
    self.raw_element.SmallIncrement()