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 TypeMethodDescriptionvoid
deselect
(int... itemIndices) Deselects items (by index) from the list.void
Deselects a list of items in the list box.void
Deselects items (by text) from the list.void
extendSelect
(int... itemIndices) Selects a list of items in the list box.void
extendSelect
(ListItem... items) Selects a list of items in the list box.void
extendSelect
(String... items) Selects a list of items in the list box.void
filterByDate
(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.int
Returns the number of items that are displayed in the list box.boolean
Returns whether multiple items can be selected.void
select
(int... itemIndices) Selects a list of items according to their indices.void
Selects a list of items in the list box.void
Selects a list of items according to their string values.void
Enters the specified text in the list box.void
singleSelect
(int itemIndex) Selects one item in the list box.void
singleSelect
(ListItem item) Selects one item in the list box.void
singleSelect
(String item) Selects one item in the list box.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportDragAndDrop
dragAndDropOn, dragAndDropOn
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
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.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
Methods 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, swipe
Methods inherited from interface com.hp.lft.sdk.web.WebTestObject
getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisible
Methods 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 ofListItem
items 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 ofListItem
items 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 ofListItem
items 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
-