Package com.hp.lft.sdk.mobile
Interface DropDown
- All Superinterfaces:
EnabledProvider
,TestObject
,TestObjectDescriber
,UiObjectBase
,WaitUntilEnabledProvider
A drop-down object in a mobile application.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
select
(int... indices) Selects the specified item or items by index. Multiple indexes are supported only for iOS.void
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.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, 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.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
-
Method Details
-
select
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
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
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
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
-