Open topic with navigation

com.hp.lft.sdk.stdwin

## Interface UiObjectBase

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider
  All Known Subinterfaces:
    Button, Calendar, CheckBox, ComboBox, Dialog, EditField, Editor, ListBox, ListView, RadioButton, ScrollBar, SpinBox, Static, StatusBar, TabControl, ToolBar, TreeView, UiObject, UiObjectWithLayoutInfo, Window

      public interface UiObjectBase
      extends UiObjectBase

  Base interface for all standard Windows test objects.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getAccessibleName()` Returns the object's name.
    `java.lang.String` | `getAttachedText()` Returns the static text attached to the object.
    `java.lang.String` | `getText()` Returns the text associated with the object.
    `java.lang.String` | `getWindowClassRegExp()` Returns the permanent part of the MFC window class.
    `java.util.EnumSet<WindowExtendedStyles>` | `getWindowExtendedStyle()` Returns the extended window style of the object.
    `long` | `getWindowExtendedStyleAsLong()` Returns the extended window style of the object as long.
    `int` | `getWindowId()` Returns the object's window identifier.
    `java.util.EnumSet<WindowStyles>` | `getWindowStyle()` Returns the window style of the object.
    `long` | `getWindowStyleAsLong()` Returns the window style of the object as long.

    - ### Methods inherited from interface com.hp.lft.sdk.UiObjectBase

      `getHandle, getNativeClass, getWindowTitleRegExp, isEnabled, isFocused, isVisible, mouseMove`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.DoubleClickable

      `doubleClick, doubleClick, doubleClick`

    - ### Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportSendKeys

      `sendKeys, sendKeys`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportDragAndDrop

      `dragAndDropOn, dragAndDropOn`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider

      `waitUntilVisible, waitUntilVisible`

    - ### Methods inherited from interface com.hp.lft.sdk.VisibleProvider

      `isVisible`

- - ### Method Detail

    - #### getAccessibleName

          java.lang.String getAccessibleName()
                                      throws GeneralLeanFtException

      Returns the object's name. Available for windowless objects only.
      Returns:
        the object's name. Available for windowless objects only.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getAttachedText

          java.lang.String getAttachedText()
                                    throws GeneralLeanFtException

      Returns the static text attached to the object.
      Returns:
        the static text attached to the object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

      Returns the text associated with the object.
      Returns:
        the text associated with the object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowExtendedStyle

          java.util.EnumSet<WindowExtendedStyles> getWindowExtendedStyle()
                                                                  throws GeneralLeanFtException

      Returns the extended window style of the object. Possible values: `WindowExtendedStyles`
      Returns:
        the extended window style of the object. Possible values: `WindowExtendedStyles`
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowExtendedStyleAsLong

          long getWindowExtendedStyleAsLong()
                                     throws GeneralLeanFtException

      Returns the extended window style of the object as long.
      Returns:
        the extended window style of the object as long.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowStyle

          java.util.EnumSet<WindowStyles> getWindowStyle()
                                                  throws GeneralLeanFtException

      Returns the window style of the object. Possible values: `WindowStyles`
      Returns:
        the window style of the object. Possible values: `WindowStyles`
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowStyleAsLong

          long getWindowStyleAsLong()
                             throws GeneralLeanFtException

      Returns the window style of the object as long.
      Returns:
        the window style of the object as long.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowClassRegExp

          java.lang.String getWindowClassRegExp()
                                         throws GeneralLeanFtException

      Returns the permanent part of the MFC window class.
      Returns:
        the permanent part of the MFC window class.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowId

          int getWindowId()
                   throws GeneralLeanFtException

      Returns the object's window identifier.
      Returns:
        the object's window identifier.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.