C# Syntax
public interface IAIObject : HP.LFT.SDK.ITestObject, HP.LFT.SDK.ITestObjectDescriber
Name | Description | |
---|---|---|
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. C# Syntax string Value {get;} | |
DisplayName | The object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject) | |
Parent | The parent test object of this test object. The child object must be obtained using the Describe method, otherwise, it returns null. (Inherited from HP.LFT.SDK.ITestObject) |
Name | Description | |
---|---|---|
Click () | Clicks in the middle of the AI object. C# Syntax
| |
DoubleClick () | Double-clicks in the middle of the AI object. This method is not supported for mobile applications. C# Syntax
| |
Exists | Checks whether this object exists in the AUT before the default object synchronization timeout elapses. (Inherited from HP.LFT.SDK.ITestObject) | |
FindChildren<TChild> | Returns all the child test objects that match the specified test object type and description filter. For example, you can use this method to retrieve all Web buttons on a Page with type="submit". (Inherited from HP.LFT.SDK.ITestObject) | |
Describe<TChild> | Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber) | |
GetDescription | Returns a clone of the description for this test object. The test object must be obtained using the Describe method, otherwise, this method returns null. (Inherited from HP.LFT.SDK.ITestObject) | |
GetSnapshot | Captures a bitmap of this test object and returns a System.Drawing.Image of it. (Inherited from HP.LFT.SDK.ITestObject) | |
GetTextLocations | Returns all rectangle areas containing the specified text within this object (Windows only). (Inherited from HP.LFT.SDK.ITestObject) | |
GetVisibleText | Returns all visible text from this object. (Inherited from HP.LFT.SDK.ITestObject) | |
Highlight | Highlights this object in the AUT. (Inherited from HP.LFT.SDK.ITestObject) | |
HighlightMatches<TChild> | Highlights all children that match the specified test object type and description filter. (Inherited from HP.LFT.SDK.ITestObject) | |
Hover () | Holds the cursor over an AI object. This method is not supported for mobile applications. C# Syntax
| |
Hover (int duration) | Holds the cursor over an AI object for a specified duration. This method is not supported for mobile applications. C# Syntax
Parameters duration - the number of seconds to hover. (Default=2) | |
LongClick () | Long-clicks in the middle of the AI object. This method is currently not supported for mobile applications. Will be implemented in the future. C# Syntax
| |
RightClick () | Right-clicks in the middle of the AI object. This method is not supported for mobile applications.
| |
Search (string text) | Types the specified text into the search box and clicks the search icon. This method is supported only for the 'search' AI class. C# Syntax
Parameters text- the text to search for. | |
SendKeys | Types the specified string into the AI object. C# Syntax
Parameters text - The string to type in the AI object. | |
SendSecureKeys (string encodedText) | Types the specified encoded string into the AI object. C# Syntax
Parameters encodedtext - The encoded text to type in the AI object.
| |
SetState (ToggleState state) | Sets the state of a toggleable AI control. The toggleable AI controls are: Check Box, Toggle Button, and Radio Button. C# Syntax
Parameters state - The state to set. | |
SetText (string text) | This method is relevant for AIObjects that represent text boxes, input controls, and combo boxes. This method is not supported for mobile applications. C# Syntax
Parameters text - The text to set in the control. | |
SetDescription | Replaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject) | |
VerifyImageExists | Checks whether a snapshot of this object contains the supplied image. (Inherited from HP.LFT.SDK.ITestObject) | |
VerifyImageMatch | Checks whether a snapshot of this object and the supplied image are a match, given the specified pixel and RGB tolerance values. (Inherited from HP.LFT.SDK.ITestObject) |