Share this page

com.hp.lft.sdk.mobile

## Interface View

- All Superinterfaces:
    EnabledProvider, Scrollable, TestObject, TestObjectDescriber, UiObjectBase, WaitUntilEnabledProvider

      public interface View
      extends UiObjectBase, TestObject, Scrollable

  A view object in a mobile application. (iOS Only)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isScrollable()` Indicates whether the view can be scrolled.
    `void` | `zoom(Location focalPoint, double scale)` Zoom to the specified scale.

    - ### Methods inherited from interface com.hp.lft.sdk.mobile.UiObjectBase

      `getAccessibilityId, getClassName, getContainer, getHint, getLocation, getMobileCenterIndex, getNativeClass, getResourceId, getSize, getText, isCheckable, isChecked, isClickable, isFocusable, isFocused, longPress, longPress, pan, pan, pan, pinch, pinch, swipe, swipe, tap, tap`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

    - ### Methods inherited from interface com.hp.lft.sdk.mobile.Scrollable

      `scrollOnePage, scrollToOffset`

- - ### Method Detail

    - #### zoom

          void zoom(Location focalPoint,
                  double scale)
                    throws GeneralLeanFtException

      Zoom to the specified scale.
      Parameters:
        `focalPoint` - the center point of the zoom.
        `scale` - the zoom scale (0.5 to reduce to half, 2 to double the size, and so on).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isScrollable

          boolean isScrollable()
                               throws GeneralLeanFtException

      Indicates whether the view can be scrolled.
      Returns:
        true if the view can be scrolled.
      Throws:
        `GeneralLeanFtException` - if 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: