Open topic with navigation

com.hp.lft.sdk

## Interface UiObjectBase

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider
  All Known Subinterfaces:
    Button, Button, Button, Calendar, Calendar, Calendar, CheckBox, CheckBox, CheckBox, ComboBox, ComboBox, ComboBox, Dialog, EditField, EditField, EditField, Editor, Editor, Image, Label, Link, List, ListBox, ListBox, ListView, ListView, Menu, ProgressBar, PropertyGrid, RadioButton, RadioButton, RadioButton, ScrollBar, ScrollBar, ScrollBar, Slider, SpinBox, SpinBox, Static, StatusBar, StatusBar, StatusBar, TabControl, TabControl, Table, Table, TabStrip, ToolBar, ToolBar, ToolBar, TreeView, TreeView, TreeView, UiObject, UiObject, UiObject, UiObjectBase, UiObjectBase, UiObjectBase, UiObjectWithLayoutInfo, Window, Window, Window

      public interface UiObjectBase
      extends Clickable, DoubleClickable, LocationInfoProvider, SupportSendKeys, SupportDragAndDrop

  Base interface for all UiObjects in all technologies.
  The UiObjects are the test objects used to identify objects in a technology that do not have a more specific relevant type.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getHandle()` The hWnd of this object's window.
    `java.lang.String` | `getNativeClass()` This object's window class name.
    `java.lang.String` | `getWindowTitleRegExp()` The constant part of this window title.
    `boolean` | `isEnabled()` Indicates whether this object is enabled.
    `boolean` | `isFocused()` Indicates whether this object is currently in focus.
    `boolean` | `isVisible()` Indicates whether this object is currently visible.
    `void` | `mouseMove(Location moveTo)` Moves the mouse pointer to the specified position inside this object.

    - ### 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

    - #### isEnabled

          boolean isEnabled()
                     throws GeneralLeanFtException

      Indicates whether this object is enabled.
      Returns:
        true if the object is enabled, false otherwise.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isFocused

          boolean isFocused()
                     throws GeneralLeanFtException

      Indicates whether this object is currently in focus.
      Returns:
        true if the object is currently in focus, false otherwise.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getNativeClass

          java.lang.String getNativeClass()
                                   throws GeneralLeanFtException

      This object's window class name.
      Returns:
        this object's window class name.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowTitleRegExp

          java.lang.String getWindowTitleRegExp()
                                         throws GeneralLeanFtException

      The constant part of this window title.
      Returns:
        the constant part of this window title.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isVisible

          boolean isVisible()
                     throws GeneralLeanFtException

      Indicates whether this object is currently visible.
      Returns:
        indicates whether this object is currently visible.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getHandle

          int getHandle()
                 throws GeneralLeanFtException

      The hWnd of this object's window.
      Returns:
        the hWnd of this object's window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### mouseMove

          void mouseMove(Location moveTo)
                  throws GeneralLeanFtException

      Moves the mouse pointer to the specified position inside this object.
      Parameters:
        `moveTo` - the `Location` to place the mouse pointer.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.