Table of Contents

Class UiObjectBaseDescription

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

Namespace: HP.LFT.SDK.Mobile
Assembly: HP.LFT.SDK.dll
Syntax
public abstract class UiObjectBaseDescription : PropertiesDescription, ICloneable, IDescription

Constructors

UiObjectBaseDescription()

Constructs an empty description.

Declaration
protected UiObjectBaseDescription()

Properties

AccessibilityId

The accessibility ID of the mobile object.

Declaration
public StringProperty AccessibilityId { get; set; }
Property Value
Type Description
StringProperty

ClassName

The test object class name used by OpenText Functional Testing Lab

Declaration
public string ClassName { get; set; }
Property Value
Type Description
string

Container

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

Declaration
public string Container { get; set; }
Property Value
Type Description
string
Remarks

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

IsCheckable

Indicates whether the object can be checked.

Declaration
public bool? IsCheckable { get; set; }
Property Value
Type Description
bool?

IsChecked

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

Declaration
public bool? IsChecked { get; set; }
Property Value
Type Description
bool?

IsClickable

Indicates whether the mobile object can be tapped.

Declaration
public bool? IsClickable { get; set; }
Property Value
Type Description
bool?

IsEnabled

Indicates whether the mobile object is enabled.

Declaration
public bool? IsEnabled { get; set; }
Property Value
Type Description
bool?

IsFocusable

Indicates whether the object can receive focus.

Declaration
public bool? IsFocusable { get; set; }
Property Value
Type Description
bool?

IsFocused

Indicates whether the mobile object is in focus.

Declaration
public bool? IsFocused { get; set; }
Property Value
Type Description
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.

Declaration
public int? MobileCenterIndex { get; set; }
Property Value
Type Description
int?

NativeClass

The native class of the mobile object.

Declaration
public StringProperty NativeClass { get; set; }
Property Value
Type Description
StringProperty

ObjectProperties

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

Declaration
public IDictionary<string, object> ObjectProperties { get; set; }
Property Value
Type Description
IDictionary<string, object>

ResourceId

The resource ID of the object. (Android only)

Declaration
public StringProperty ResourceId { get; set; }
Property Value
Type Description
StringProperty

Text

The text of the mobile object.

Declaration
public StringProperty Text { get; set; }
Property Value
Type Description
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.

Declaration
public List<VisualRelation> Vri { get; set; }
Property Value
Type Description
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.

Implements

ICloneable
IDescription