Table of Contents

Interface IInsightObject

Namespace
HP.LFT.SDK.Insight
Assembly
HP.LFT.SDK.dll

An object identified using image-based recognition.

public interface IInsightObject : ITestObject, ITestObjectDescriber, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop
Inherited Members
Extension Methods

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.

void ClickSpecial(ClickArgs args)

Parameters

args ClickArgs

The click behaviors that will be used for the click.

ClickSpecial(MouseButton)

Clicks this object, without first bringing its parent into focus.

void ClickSpecial(MouseButton button = MouseButton.Left)

Parameters

button MouseButton

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.

void Hover(Location location)

Parameters

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)

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).

void LongClick(Location location)

Parameters

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.

void LongClick(double duration, Location location)

Parameters

duration double

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.

void SetSecure(string encodedText)

Parameters

encodedText string

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.