com.hp.lft.sdk.java

Interface UiObjectBase

    • Method Detail

      • getAttachedText

        java.lang.String getAttachedText()
                                  throws GeneralLeanFtException
        Returns the static text attached to this object.
        Returns:
        the static text.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getBackgroundColor

        java.lang.String getBackgroundColor()
                                     throws GeneralLeanFtException
        Returns the object's background color.
        Returns:
        the object's background color.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getForegroundColor

        java.lang.String getForegroundColor()
                                     throws GeneralLeanFtException
        Returns the object's foreground color.
        Returns:
        the object's foreground color.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getObjectName

        java.lang.String getObjectName()
                                throws GeneralLeanFtException
        Returns test object's ObjectName. Given the statement "EditBox newEditBox = new EditBox(0,0)", the object name is "newEditBox".
        Returns:
        the instance variable name.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getPath

        java.lang.String getPath()
                          throws GeneralLeanFtException
        Returns the object's hierarchy (object ancestors).
        Returns:
        the object's hierarchy (object ancestors).
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getNativeClass

        java.lang.String getNativeClass()
                                 throws GeneralLeanFtException
        Returns the object's Java class name.
        Returns:
        the object's Java class name.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • sendKeys

        void sendKeys(java.lang.String input,
                      java.util.EnumSet<KeyModifier> modifiers)
               throws GeneralLeanFtException
        Types the specified string into the test object, including special keys or key modifiers.
        Parameters:
        input - the string to type in the object. The string can include constants from the Keys class.
        modifiers - a mask of values indicating keys to be pressed and held while the specified string is entered. For the list of modifiers, see documentation for java.awt.event.InputEvent.
        The keys are released when the SendKeys step is finished.
        The WINDOWS_LOGO modifier is not supported in Java test objects.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • sendKeys

        void sendKeys(java.lang.String input)
               throws GeneralLeanFtException
        Types the specified string into the object in the application.
        Parameters:
        input - the string to type in the object. The string can include constants from the Keys class.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.