com.hp.lft.sdk.mobile

Interface UiObjectBase

    • Method Detail

      • getClassName

        String getClassName()
                            throws GeneralLeanFtException
        Returns the test object class name used by Digital Lab (UFT Mobile).
        Returns:
        the test object class name used by Digital Lab (UFT Mobile).
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getContainer

        String getContainer()
                            throws GeneralLeanFtException
        Returns information about the table container, if the object is in a table. (iOS Only).
        Returns:
        information about the table container, if the object is in a table.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • isFocused

        boolean isFocused()
                          throws GeneralLeanFtException
        Indicates whether the mobile control is in focus.
        Returns:
        true if the mobile control is in focus.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • isFocusable

        boolean isFocusable()
                            throws GeneralLeanFtException
        Indicates whether the control can receive focus.
        Returns:
        true if the control can receive focus.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getHint

        String getHint()
                       throws GeneralLeanFtException
        Returns the hint property of the mobile control. The hint is an instruction or an example indicating the type of content to enter for the value of a control, for example, a grayed out hint inside a text box.
        Returns:
        the hint property of the mobile control.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • isCheckable

        boolean isCheckable()
                            throws GeneralLeanFtException
        Indicates whether the mobile object can be checked.
        Returns:
        true if the mobile object can be checked.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • isChecked

        boolean isChecked()
                          throws GeneralLeanFtException
        Indicates whether the mobile object is checked (relevant for controls that can have a check mark).
        Returns:
        true if the mobile object is checked (relevant for controls that can have a check mark).
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getMobileCenterIndex

        int getMobileCenterIndex()
                                 throws GeneralLeanFtException
        Returns the ordinal number assigned to the object by Digital Lab (UFT Mobile) to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.
        Returns:
        the ordinal number assigned to the object by Digital Lab (UFT Mobile) to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • pan

        void pan(Point start,
               Point end)
                 throws GeneralLeanFtException
        Perform a Pan gesture on the object.
        Parameters:
        start - the location at which to start the pan gesture.
        end - the location at which to end the pan gesture.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • pan

        void pan(Point start,
               Point end,
               PanArgs args)
                 throws GeneralLeanFtException
        Perform a Pan gesture on the object.
        Parameters:
        start - the location at which to start the pan gesture.
        end - the location at which to end the pan gesture.
        args - additional arguments for the pan operation.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • pinch

        void pinch(double scale)
                   throws GeneralLeanFtException
        Perform a Pinch gesture on the object.
        Parameters:
        scale - 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.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • pinch

        void pinch(double scale,
                 PinchArgs args)
                   throws GeneralLeanFtException
        Perform a Pinch gesture on the object.
        Parameters:
        scale - 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 - additional arguments for the pinch operation.
        Throws:
        GeneralLeanFtException - if error occurs during execution.