Skip to content

Thumb

flaui.core.automation_elements.Thumb

Bases: AutomationElement

Class to interact with a thumb element.

slide_horizontally(distance)

Moves the slider horizontally.

Parameters:

Name Type Description Default
distance int

The distance to move the slider, + for right, - for left.

required
Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def slide_horizontally(self, distance: int):
    """Moves the slider horizontally.

    :param distance: The distance to move the slider, + for right, - for left.
    """
    self.raw_element.SlideHorizontally(distance)

slide_vertically(distance)

Moves the slider vertically.

Parameters:

Name Type Description Default
distance int

The distance to move the slider, + for down, - for up.

required
Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def slide_vertically(self, distance: int):
    """Moves the slider vertically.

    :param distance: The distance to move the slider, + for down, - for up.
    """
    self.raw_element.SlideVertically(distance)