Interface IInsightObject
An object identified using image-based recognition.
Inherited Members
Namespace: HP.LFT.SDK.Insight
Assembly: HP.LFT.SDK.dll
Syntax
public interface IInsightObject : ITestObject, ITestObjectDescriber, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop
Remarks
See the Help Center for more details on using Insight to identify objects in your application.
Methods
ClickSpecial(ClickArgs)
Clicks this object using the specified ClickArgs, without first bringing its parent into focus.
Declaration
void ClickSpecial(ClickArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ClickArgs | args | The click behaviors that will be used for the click. |
ClickSpecial(MouseButton)
Clicks this object, without first bringing its parent into focus.
Declaration
void ClickSpecial(MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseButton | button | Optional. The mouse button that performs the click. Possible Values: MouseButton. Default = MouseButton.Left. |
Hover(Location)
Places the mouse pointer on the specified location in this object.
Declaration
void Hover(Location location)
Parameters
| Type | Name | Description |
|---|---|---|
| Location | location | The location to place the pointer. |
LongClick()
Presses and holds the left mouse button for the default amount of time (1.1 seconds)
Declaration
void LongClick()
LongClick(Location)
Presses and holds the left mouse button on the specified point inside this object for the default amount of time (1.1 seconds).
Declaration
void LongClick(Location location)
Parameters
| Type | Name | Description |
|---|---|---|
| Location | location | Defines the location to place the pointer when pressing the mouse button |
LongClick(double, Location)
Presses and holds the left mouse button on the specified point inside this object for the specified number of seconds.
Declaration
void LongClick(double duration, Location location)
Parameters
| Type | Name | Description |
|---|---|---|
| double | duration | The number of seconds to hold the mouse button. |
| Location | location | Defines the location to place the pointer when pressing the mouse button |
SetSecure(string)
Sets the encoded value of this editable field object.
Declaration
void SetSecure(string encodedText)
Parameters
| Type | Name | Description |
|---|---|---|
| string | encodedText | The encoded text to enter in this edit box. |
Remarks
Generate the encoded value using the Password Encoder utility, available from the OpenText Functional Testing for Developers > Tools menu in your IDE or from the Windows Start menu.
Note: The SetSecure method enables you to hide passwords displayed on the screen while running or editing a test, but it is not intended to be a secure way to protect password information.