Share this page

com.hp.lft.sdk.mobile

## Interface DropDown

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

      public interface DropDown
      extends UiObjectBase, TestObject

  A drop-down object in a mobile application.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `select(int... indices)` Selects the specified item or items by index. Multiple indexes are supported only for iOS.
    `void` | `select(String... items)` Selects the specified items by name from the corresponding picker wheel's list of values (iOS only).
    `void` | `selectInWheel(int pickerWheel, int index)` Selects the specified item in the specified picker wheel by index (iOS only).
    `void` | `selectInWheel(int pickerWheel, String item)` Selects the specified item by name in the picker (iOS only).

    - ### 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`

- - ### Method Detail

    - #### select

          void select(int... indices)
                      throws GeneralLeanFtException

      Selects the specified item or items by index. Multiple indexes are supported only for iOS. For an iOS picker wheel, you can pass an index for each wheel.
      For an Android drop-down, pass only one index.
      Parameters:
        `indices` - The 0-based indexes of the items to select.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(String... items)
                      throws GeneralLeanFtException

      Selects the specified items by name from the corresponding picker wheel's list of values (iOS only).
      Parameters:
        `items` - the names of the items to select in each wheel.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### selectInWheel

          void selectInWheel(int pickerWheel,
                           int index)
                             throws GeneralLeanFtException

      Selects the specified item in the specified picker wheel by index (iOS only).
      Parameters:
        `pickerWheel` - the 0-based index of the picker wheel in which to select the specified item.
        `index` - the 0-based index of the item to select in the specified picker wheel.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### selectInWheel

          void selectInWheel(int pickerWheel,
                           String item)
                             throws GeneralLeanFtException

      Selects the specified item by name in the picker (iOS only).
      Parameters:
        `pickerWheel` - the 0-based index of the picker wheel in which to select the specified item.
        `item` - the name of the item to select in the picker wheel.
      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: