Package com.hp.lft.sdk.sap.ui5
Interface ListBox
- All Superinterfaces:
Clickable,EnabledProvider,LocationInfoProvider,SupportDragAndDrop,SupportsNativeObject,TestObject,TestObjectDescriber,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider,WebElement,WebTestObject,WebTestObjectDescriber
An SAPUI5 list box object.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeselect(int... itemIndices) Deselects items (by index) from the list.voidDeselects a list of items in the list box.voidDeselects items (by text) from the list.voidextendSelect(int... itemIndices) Selects a list of items in the list box.voidextendSelect(ListItem... items) Selects a list of items in the list box.voidextendSelect(String... items) Selects a list of items in the list box.voidfilterByDate(Date date) Invokes the filter according to the specified date.Returns the control type of the test object.Returns the initial text value, which is set when the object is reset.Returns an item with the given text.getItems()Returns all of the items in the list.Returns the functionality provided byMobileListBehavior.Returns the list of all selected items.Returns the selection type of the list object.getType()Returns the attribute "type" of the HTML element.getValue()Returns this object's text value.intReturns the number of items that are displayed in the list box.booleanReturns whether multiple items can be selected.voidselect(int... itemIndices) Selects a list of items according to their indices.voidSelects a list of items in the list box.voidSelects a list of items according to their string values.voidEnters the specified text in the list box.voidsingleSelect(int itemIndex) Selects one item in the list box.voidsingleSelect(ListItem item) Selects one item in the list box.voidsingleSelect(String item) Selects one item in the list box.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDrop
dragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods 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, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebElement
doubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipeMethods inherited from interface com.hp.lft.sdk.web.WebTestObject
getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber
describe, describe
-
Method Details
-
getItems
Returns all of the items in the list.- Returns:
- All of the items in the list.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getSelectedItems
Returns the list of all selected items.- Returns:
- The list of of all selected items.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getSelectType
Returns the selection type of the list object.- Returns:
- selection type of the list object. Possible values:
SelectType - Throws:
GeneralLeanFtException- if error occurs during execution
-
getControlType
ControlType getControlType()Returns the control type of the test object.- Returns:
- The control type of the test object. Possible values:
ControlType
-
getMobile
MobileListBehavior getMobile()Returns the functionality provided byMobileListBehavior.- Returns:
- The functionality provided by
MobileListBehavior.
-
set
Enters the specified text in the list box.- Parameters:
text- the text to enter.- Throws:
GeneralLeanFtException- if error occurs during execution
-
filterByDate
Invokes the filter according to the specified date.- Parameters:
date- the date by which to filter.- Throws:
GeneralLeanFtException- if error occurs during execution
-
isMultiple
Returns whether multiple items can be selected.- Returns:
- True if multiple items can be selected.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects a list of items in the list box.- Parameters:
items- a collection ofListItemitems to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects a list of items according to their string values.- Parameters:
items- a collection of items to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects a list of items according to their indices.- Parameters:
itemIndices- the item indices to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
singleSelect
Selects one item in the list box.- Parameters:
item- the item to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
singleSelect
Selects one item in the list box.- Parameters:
item- the item to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
singleSelect
Selects one item in the list box.- Parameters:
itemIndex- the item index to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
extendSelect
Selects a list of items in the list box.- Parameters:
items- a collection ofListItemitems to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
extendSelect
Selects a list of items in the list box.- Parameters:
items- a collection of items to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
extendSelect
Selects a list of items in the list box.- Parameters:
itemIndices- a collection of item indices to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
deselect
Deselects a list of items in the list box.- Parameters:
items- a collection ofListItemitems to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
deselect
Deselects items (by text) from the list.- Parameters:
items- the item names to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
deselect
Deselects items (by index) from the list.- Parameters:
itemIndices- a collection of indices to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
getItem
Returns an item with the given text.- Parameters:
text- the text of the specified item.- Returns:
- an item with the specified text.
-
getValue
Returns this object's text value.- Returns:
- this object's text value.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getDefaultValue
Returns the initial text value, which is set when the object is reset.- Returns:
- the initial text value, which is set when the object is reset.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getType
Returns the attribute "type" of the HTML element.- Returns:
- the attribute "type" of the HTML element.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getVisibleItemsCount
Returns the number of items that are displayed in the list box.- Returns:
- the number of items that are displayed in the list box.
- Throws:
GeneralLeanFtException- if error occurs during execution
-