Open topic with navigation

IButton Interface
A button object in a mobile application.

C# Syntax

    public interface IButton : HP.LFT.SDK.ITestObject, HP.LFT.SDK.ITestObjectDescriber, IUiObjectBase

Public Properties

| Name | Description
--- | --- | ---
| AccessibilityId | The accessibility ID of the mobile object. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| ClassName | The test object class name used by Mobile Center. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Container | Information about the table container, if the object is in a table. (iOS Only) (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| 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. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| DisplayName | The object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject)
| IsCheckable | Indicates whether the mobile object can be checked. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| IsChecked | Indicates whether the mobile object is checked. (Relevant for checkable objects, such as a check box.) (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| IsClickable | Indicates whether the object can be tapped. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| IsEnabled | Indicates whether the mobile object is enabled. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| IsFocusable | Indicates whether the object can receive focus. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| IsFocused | Indicates whether the mobile object is in focus. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Location | The location of the mobile object. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| NativeClass | The native class of the mobile object. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Parent | The parent test object of this test object. The child object must be obtained using the Describe method, otherwise, it returns null. (Inherited from HP.LFT.SDK.ITestObject)
| ResourceId | The resource ID of the object. (Android Only) (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Size | The size of the mobile object. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Text | The object's text. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)

Top
Public Methods

| Name | Description
--- | --- | ---
| Describe<TChild> | Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber)
| Exists | Checks whether this object exists in the AUT before the default object synchronization timeout elapses. (Inherited from HP.LFT.SDK.ITestObject)
| FindChildren<TChild> | Returns all the child test objects that match the specified test object type and description filter. For example, you can use this method to retrieve all Web buttons on a Page with type="submit". (Inherited from HP.LFT.SDK.ITestObject)
| GetDescription | Returns a clone of the description for this test object. The test object must be obtained using the Describe method, otherwise, this method returns null. (Inherited from HP.LFT.SDK.ITestObject)
| GetSnapshot | Captures a bitmap of this test object and returns a System.Drawing.Image of it. (Inherited from HP.LFT.SDK.ITestObject)
| GetTextLocations | Returns all rectangle areas containing the specified text within this object (Windows only). (Inherited from HP.LFT.SDK.ITestObject)
| GetVisibleText | Returns all visible text from this object. (Inherited from HP.LFT.SDK.ITestObject)
| Highlight | Highlights this object in the AUT. (Inherited from HP.LFT.SDK.ITestObject)
| HighlightMatches<TChild> | Highlights all children that match the specified test object type and description filter. (Inherited from HP.LFT.SDK.ITestObject)
| LongPress | Taps and holds the object for a short time. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Pan | Perform a Pan gesture on the object. (iOS Only) (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Pinch | Perform a Pinch gesture on the object. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| SetDescription | Replaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject)
| Swipe | Swipes the object in the specified direction. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| Tap | Taps the center of the object. (Inherited from HP.LFT.SDK.Mobile.IUiObjectBase)
| VerifyImageExists | Checks whether a snapshot of this object contains the supplied image. (Inherited from HP.LFT.SDK.ITestObject)
| VerifyImageMatch | Checks whether a snapshot of this object and the supplied image are a match, given the specified pixel and RGB tolerance values. (Inherited from HP.LFT.SDK.ITestObject)

Top