Interface IInsightObject
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
argsClickArgsThe 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
buttonMouseButtonOptional. 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
locationLocationThe 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
locationLocationDefines 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
durationdoubleThe number of seconds to hold the mouse button.
locationLocationDefines 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
encodedTextstringThe 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.