Table of Contents

Class UiObjectBaseDescription

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

Common description properties for all test objects in a mobile application (except for IApplication and IDevice).

public abstract class UiObjectBaseDescription : PropertiesDescription, ICloneable, IDescription
Inheritance
UiObjectBaseDescription
Implements
Derived
Inherited Members

Constructors

UiObjectBaseDescription()

Constructs an empty description.

protected UiObjectBaseDescription()

Properties

AccessibilityId

The accessibility ID of the mobile object.

public StringProperty AccessibilityId { get; set; }

Property Value

StringProperty

ClassName

The test object class name used by OpenText Functional Testing Lab

public string ClassName { get; set; }

Property Value

string

Container

Container information if the object is in a table. (iOS Only)

public string Container { get; set; }

Property Value

string

Remarks

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

IsCheckable

Indicates whether the object can be checked.

public bool? IsCheckable { get; set; }

Property Value

bool?

IsChecked

Indicates whether the mobile object is checked. (Relevant only for checkable objects, for example, a check box.)

public bool? IsChecked { get; set; }

Property Value

bool?

IsClickable

Indicates whether the mobile object can be tapped.

public bool? IsClickable { get; set; }

Property Value

bool?

IsEnabled

Indicates whether the mobile object is enabled.

public bool? IsEnabled { get; set; }

Property Value

bool?

IsFocusable

Indicates whether the object can receive focus.

public bool? IsFocusable { get; set; }

Property Value

bool?

IsFocused

Indicates whether the mobile object is in focus.

public bool? IsFocused { get; set; }

Property Value

bool?

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.

public int? MobileCenterIndex { get; set; }

Property Value

int?

NativeClass

The native class of the mobile object.

public StringProperty NativeClass { get; set; }

Property Value

StringProperty

ObjectProperties

The concrete test object properties, including custom properties created by the developer of the object.

public IDictionary<string, object> ObjectProperties { get; set; }

Property Value

IDictionary<string, object>

ResourceId

The resource ID of the object. (Android only)

public StringProperty ResourceId { get; set; }

Property Value

StringProperty

Text

The text of the mobile object.

public StringProperty Text { get; set; }

Property Value

StringProperty

Vri

Distinguishes this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.

public List<VisualRelation> Vri { get; set; }

Property Value

List<VisualRelation>

Remarks

For example if you have 10 identical buttons with the text label "Buy" and no other real property to distinguish between them, you can use VRI to indicate that this test object represents the "Buy" button that is located to the right of the image of a specific product. The Vri property value is a VisualRelation object that defines the test object you are relating to, and where that related object is located on the screen relative to the object to identify. For more details, see the Help Center.