Package com.hp.lft.sdk.ai
Interface AiObject
- All Superinterfaces:
- TestObject,- TestObjectDescriber
An object identified using Artificial intelligence.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclick()Clicks in the middle of the AI object.voidDouble-clicks in the middle of the AI object.getValue()Returns the AI object's value.voidhover()Holds the cursor over an AI object.voidhover(int duration) Holds the cursor over an AI object for a given duration.voidLong-clicks in the middle of the AI object.voidRight-clicks in the middle of the AI object.voidTypes the specified text into the search box and clicks the search icon.voidSelects an item from a combo box.voidselect(String element, AiComboBoxSettings settings) Selects an item from a combo box, using the specified settings.voidTypes the specified string into the AI object.voidsendSecureKeys(String encodedText) Types the specified encoded string into the AI object.voidsetState(ToggleState state) Sets the state of a toggleable AI control.voidThis method is relevant for AIObjects that represent text boxes, input controls, and combo boxes.Methods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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.TestObjectDescriberdescribe
- 
Method Details- 
clickClicks in the middle of the AI object.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
doubleClickDouble-clicks in the middle of the AI object. This method is not supported for mobile applications.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
longClickLong-clicks in the middle of the AI object. This method is currently not supported for mobile applications. Will be implemented in the future.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
rightClickRight-clicks in the middle of the AI object. This method is not supported for mobile applications.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
sendKeysTypes the specified string into the AI object.- Parameters:
- text- the string to type in the AI object.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
searchTypes the specified text into the search box and clicks the search icon. This method is supported only for the 'search' AI class.- Parameters:
- text- the text to search for.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
sendSecureKeysTypes the specified encoded string into the AI object.- Parameters:
- encodedText- the encoded text to type in the AI object.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setStateSets the state of a toggleable AI control. The toggleable AI controls are: Check Box, Toggle Button and Radio Button- Parameters:
- state- the state to set.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setTextThis method is relevant for AIObjects that represent text boxes, input controls, and combo boxes. This method is not supported for mobile applications.- Parameters:
- text- the input to set.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getValueReturns the AI object's value. The value is based on the following object properties: text for text objects, state for toggleable controls, and value for input fields, text boxes, and combo boxes.- Returns:
- the AI object's value
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
hoverHolds the cursor over an AI object. This method is not supported for mobile applications.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
hoverHolds the cursor over an AI object for a given duration. This method is not supported for mobile applications.- Parameters:
- duration- The duration value.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects an item from a combo box.- Parameters:
- element- The item to select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects an item from a combo box, using the specified settings. After the select operation is finished the settings will be reverted to default.- Parameters:
- element- The item to select.
- settings- The settings to use for the select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-