Open topic with navigation

IUiObjectBase Interface
Common functionality for all UI objects in a mobile application.

C# Syntax

    public interface IUiObjectBase

Public Properties

| Name | Description
--- | --- | ---
| AccessibilityId | The accessibility ID of the mobile object.
| ClassName | The test object class name used by Mobile Center.
| Container | Information about the table container, if the object is in a table. (iOS Only)
| 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. C# Syntax
    string Hint {get;}
| IsCheckable | Indicates whether the mobile object can be checked. C# Syntax
    bool IsCheckable {get;}
| IsChecked | Indicates whether the mobile object is checked. (Relevant for objects that can have a check mark.) C# Syntax
    bool IsChecked {get;}
| IsClickable | Indicates whether the object can be tapped.
| IsEnabled | Indicates whether the mobile object is enabled.
| IsFocusable | Indicates whether the object can receive focus.
| IsFocused | Indicates whether the mobile object is in focus.
| Location | The location of the mobile object.
| NativeClass | The native class of the mobile object. C# Syntax
    string NativeClass {get;}
| ResourceId | The resource ID of the object. (Android Only)
| Size | The size of the mobile object.
| Text | The object's text. C# Syntax
    string Text {get;}

Top
Public Methods

| Name | Description
--- | --- | ---
| LongPress | Overloaded. Taps and holds the object for a short time.
| Pan | Overloaded. Perform a Pan gesture on the object. (iOS Only)
| Pinch | Overloaded. Perform a Pinch gesture on the object.
| Swipe | Overloaded. Swipes the object in the specified direction.
| Tap | Overloaded. Taps the center of the object.

Top