com.hp.lft.sdk.uiapro

Interface ScrollPattern

Supported in UFT Developer version 24.2 and later

UIA Pro is supported as a technical preview.



  • public interface ScrollPattern
    The methods and properties used to interact with a container control that can be scrolled.
    • Method Detail

      • setVerticalScrollPercent

        void setVerticalScrollPercent(double value)
                               throws GeneralLeanFtException
        Set the current vertical scroll position.
        Parameters:
        value - the current vertical scroll position.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • setHorizontalScrollPercent

        void setHorizontalScrollPercent(double value)
                                 throws GeneralLeanFtException
        Set the current horizontal scroll position.
        Parameters:
        value - the current horizontal scroll position.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • scroll

        void scroll(ScrollAmount horizontalAmount,
                    ScrollAmount verticalAmount)
             throws GeneralLeanFtException
        Scrolls the visible region of the content area horizontally and vertically.
        Parameters:
        horizontalAmount - The horizontal increment specific to the control.
        verticalAmount - The vertical increment specific to the control.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • scrollHorizontal

        void scrollHorizontal(ScrollAmount horizontalAmount)
                       throws GeneralLeanFtException
        Scrolls the visible region of the content area horizontally.
        Parameters:
        horizontalAmount - The horizontal increment specific to the control.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • scrollVertical

        void scrollVertical(ScrollAmount verticalAmount)
                     throws GeneralLeanFtException
        Scrolls the visible region of the content area vertically.
        Parameters:
        verticalAmount - The vertical increment specific to the control.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • setScrollPercent

        void setScrollPercent(double horizontalPercent,
                              double verticalPercent)
                       throws GeneralLeanFtException
        Sets the horizontal and/or vertical scroll position as a percentage of the total content area within the automation element.
        Parameters:
        horizontalPercent - The percentage of the total horizontal content area.
        verticalPercent - The percentage of the total vertical content area.
        Throws:
        GeneralLeanFtException - if error occurs during execution.