Share this page

com.hp.lft.sdk.mobile

## Interface Scrollable

- All Known Subinterfaces:
    Table, View, WebView

      public interface Scrollable

  Common functionality for mobile controls that can be scrolled.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `scrollOnePage(ScrollPageDirection direction)` Scrolls the object one page in the specified direction.
    `void` | `scrollToOffset(int x, int y)` Scrolls the object to the specified x,y coordinates.

- - ### Method Detail

    - #### scrollToOffset

          void scrollToOffset(int x,
                              int y)
                       throws GeneralLeanFtException

      Scrolls the object to the specified x,y coordinates.
      Parameters:
        `x` - the x-coordinate for the scroll operation, in pixels. The specified coordinate is relative to the left side of the object. If an object does not support horizontal scrolling, x = 0.
        `y` - the y-coordinate for the scroll operation, in pixels. The specified coordinate is relative to the top of the object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### scrollOnePage

          void scrollOnePage(ScrollPageDirection direction)
                      throws GeneralLeanFtException

      Scrolls the object one page in the specified direction.
      Parameters:
        `direction` - the direction to scroll.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: