Table of Contents

Interface IUiObjectBase

Namespace
HP.LFT.SDK.Mobile
Assembly
HP.LFT.SDK.dll

Common functionality for all UI objects in a mobile application.

public interface IUiObjectBase : IEnabledProvider
Inherited Members
Extension Methods

Properties

AccessibilityId

The accessibility ID of the mobile object.

string AccessibilityId { get; }

Property Value

string

ClassName

The test object class name used by OpenText Functional Testing Lab

string ClassName { get; }

Property Value

string

Container

Information about the table container, if the object is in a table. (iOS Only)

string Container { get; }

Property Value

string

Remarks

Container information can include the class name, index, cell index, and section, for example.

Hint

Instruction or example indicating the type of content to enter for the value of a control, for example, a grayed out hint inside a text box.

string Hint { get; }

Property Value

string

IsCheckable

Indicates whether the mobile object can be checked.

bool IsCheckable { get; }

Property Value

bool

IsChecked

Indicates whether the mobile object is checked. (Relevant for objects that can have a check mark.)

bool IsChecked { get; }

Property Value

bool

IsClickable

Indicates whether the object can be tapped.

bool IsClickable { get; }

Property Value

bool

IsFocusable

Indicates whether the object can receive focus.

bool IsFocusable { get; }

Property Value

bool

IsFocused

Indicates whether the mobile object is in focus.

bool IsFocused { get; }

Property Value

bool

Location

The location of the mobile object.

Point Location { get; }

Property Value

Point

MobileCenterIndex

An ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.

int MobileCenterIndex { get; }

Property Value

int

NativeClass

The native class of the mobile object.

string NativeClass { get; }

Property Value

string

ResourceId

The resource ID of the object. (Android Only)

string ResourceId { get; }

Property Value

string

Size

The size of the mobile object.

Size Size { get; }

Property Value

Size

Text

The object's text.

string Text { get; }

Property Value

string

Methods

LongPress()

Taps and holds the object for a short time.

void LongPress()

LongPress(LongPressArgs)

Taps and holds the object for a short time according to the specified behavior.

void LongPress(LongPressArgs args)

Parameters

args LongPressArgs

Additional LongPressArgs arguments that define the behavior of the long press operation.

Pan(Location, Location)

Perform a Pan gesture on the object.

void Pan(Location start, Location end)

Parameters

start Location

The location at which to start the pan gesture.

end Location

The location at which to end the pan gesture.

Pan(Point, Point)

Perform a Pan gesture on the object with default PanArgs.

void Pan(Point start, Point end)

Parameters

start Point

The Point at which to start the pan gesture.

end Point

The Point at which to end the pan gesture.

Pan(Point, Point, PanArgs)

Perform a Pan gesture on the object.

void Pan(Point start, Point end, PanArgs args)

Parameters

start Point

The Point at which to start the pan gesture.

end Point

The Point at which to end the pan gesture.

args PanArgs

PanArgs arguments that define the behavior of the pan operation.

Pinch(double)

Perform a Pinch gesture on the object.

void Pinch(double scale)

Parameters

scale double

The scale for the pinch gesture. This number is the ratio between the start distance and the end distance between the two touch point used for the pinch. For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm, apart, the scale would be 0.5

Pinch(double, PinchArgs)

Perform a Pinch gesture on the object.

void Pinch(double scale, PinchArgs args)

Parameters

scale double

The scale for the pinch gesture. This number is the ratio between the start distance and the end distance between the two touch point used for the pinch. For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm, apart, the scale would be 0.5

args PinchArgs

PinchArgs arguments that define the behavior of the pinch operation.

Swipe(SwipeDirection)

Swipes the object in the specified direction.

void Swipe(SwipeDirection direction)

Parameters

direction SwipeDirection

The SwipeDirection.

Swipe(SwipeDirection, SwipeArgs)

Swipes the object in the specified direction.

void Swipe(SwipeDirection direction, SwipeArgs args)

Parameters

direction SwipeDirection

The SwipeDirection.

args SwipeArgs

SwipeArgs arguments that define the behavior of the swipe operation.

Tap()

Taps the center of the object.

void Tap()

Tap(TapArgs)

Taps the object using the specified arguments.

void Tap(TapArgs args)

Parameters

args TapArgs

TapArgs arguments that define the behavior of the tap operation.