Package com.hp.lft.sdk.mobile
Interface Table
- All Superinterfaces:
EnabledProvider,Scrollable,TestObject,TestObjectDescriber,UiObjectBase,WaitUntilEnabledProvider
A table object in a mobile application.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int item) Deletes the specified item from the table.voiddelete(int section, int item) Deletes the specified item or section (iOS only).voidinsert(int item) Inserts an item or section at the specified location in the table.voidinsert(int section, int item) Inserts an item or section at the specified location in the table (iOS only).voidmoveItem(int srcItem, int destItem) Moves an item or section in the list (iOS only).voidmoveItem(int srcSection, int srcItem, int destSection, int destItem) Moves an item or section in the list (iOS only).voidscroll(int index) Scrolls to the specified item in the table.voidscroll(int section, int item) Scrolls to the specified item in the specified section of the table.voidselect(int index) Selects a row in the table.voidselect(int section, int item) Selects an item in a section in the table.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.mobile.Scrollable
scrollOnePage, scrollToOffsetMethods 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.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, tapMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
scroll
Scrolls to the specified item in the table.- Parameters:
index- the numeric index of the item to scroll to.- Throws:
GeneralLeanFtException- if error occurs during execution
-
scroll
Scrolls to the specified item in the specified section of the table.- Parameters:
section- the numeric index of the section containing the item to scroll to.item- the numeric index of the item to scroll to.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects a row in the table.- Parameters:
index- the numeric index of the item to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects an item in a section in the table.- Parameters:
section- the numeric index of the section in which to select the specified item.item- the numeric index of the item to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
insert
Inserts an item or section at the specified location in the table. (iOS Only)- Parameters:
item- the numeric index of the location for the new item.- Throws:
GeneralLeanFtException- if error occurs during execution
-
insert
Inserts an item or section at the specified location in the table (iOS only).- Parameters:
section- the numeric index of the section in which to insert the specified item.item- the numeric index of the location for the new item.- Throws:
GeneralLeanFtException- if error occurs during execution
-
delete
Deletes the specified item from the table. (iOS Only)- Parameters:
item- the numeric index of the item to delete.- Throws:
GeneralLeanFtException- if error occurs during execution
-
delete
Deletes the specified item or section (iOS only).- Parameters:
section- the numeric index of the section from which to delete the specified item.item- the numeric index of the item to delete.- Throws:
GeneralLeanFtException- if error occurs during execution
-
moveItem
Moves an item or section in the list (iOS only).- Parameters:
srcItem- the numeric index of the item to move.destItem- the numeric index of the new location for the item.- Throws:
GeneralLeanFtException- if error occurs during execution
-
moveItem
void moveItem(int srcSection, int srcItem, int destSection, int destItem) throws GeneralLeanFtException Moves an item or section in the list (iOS only).- Parameters:
srcSection- the numeric index of the section from which to move the specified srcItem.srcItem- the numeric index of the item to move.destSection- the numeric index of the section in which to place the specified destItem.destItem- the numeric index of the new location for the item.- Throws:
GeneralLeanFtException- if error occurs during execution
-