Open topic with navigation

com.hp.lft.sdk.wpf

## Interface UiObjectBase

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, SupportsNativeObject, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider
  All Known Subinterfaces:
    Button, Calendar, CheckBox, ComboBox, EditField, Image, Link, List, Menu, ProgressBar, RadioButton, ScrollBar, Slider, StatusBar, Table, TabStrip, ToolBar, TreeView, UiObject, Window

      public interface UiObjectBase
      extends UiObjectBase, SupportsNativeObject

  Base interface of all .Net WPF test objects.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `canFocus()` Indicates whether this object can receive focus.
    `java.lang.String` | `getAttachedText()` Returns the static text that is attached to this object.
    `java.lang.String` | `getFullNamePath()` Returns the full hierarchy of this object with all parent objects.
    `java.lang.String` | `getFullType()` Returns the full type name of this object.
    `java.lang.String` | `getObjectName()` Returns the name of this instance. For example, for `myFoo = new fooBar`, the ObjectName is myFoo.
    `<TValue> TValue` | `getObjectProperty(java.lang.String propname, java.lang.Class<TValue> returnType)` Returns the value of a test object property.
    `java.lang.String` | `getText()` Returns the text associated with this object.
    `void` | `makeVisible()` Scrolls this object into view in the parent window.
    `void` | `showContextMenu()` Displays this object's context menu.

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

      `getNativeObject`

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

      `waitUntilVisible, waitUntilVisible`

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

      `isVisible`

- - ### Method Detail

    - #### canFocus

          boolean canFocus()
                    throws GeneralLeanFtException

      Indicates whether this object can receive focus.
      Returns:
        true if can receive focus
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getObjectName

          java.lang.String getObjectName()
                                  throws GeneralLeanFtException

      Returns the name of this instance.
      For example, for `myFoo = new fooBar`, the ObjectName is myFoo.
      Returns:
        this object's name
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getFullNamePath

          java.lang.String getFullNamePath()
                                    throws GeneralLeanFtException

      Returns the full hierarchy of this object with all parent objects.
      Returns:
        the full hierarchy
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getFullType

          java.lang.String getFullType()
                                throws GeneralLeanFtException

      Returns the full type name of this object.
      Returns:
        the full type name
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getAttachedText

          java.lang.String getAttachedText()
                                    throws GeneralLeanFtException

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

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

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

    - #### getObjectProperty

          <TValue> TValue getObjectProperty(java.lang.String propname,
                                            java.lang.Class<TValue> returnType)
                                     throws GeneralLeanFtException

      Returns the value of a test object property.
      This method can return any property of this control, including custom properties declared in a custom control.
      Type Parameters:
        `TValue` - the generic type of the test object property value.
      Parameters:
        `propname` - the property name
        `returnType` - the property type
      Returns:
        the value of the property
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### makeVisible

          void makeVisible()
                    throws GeneralLeanFtException

      Scrolls this object into view in the parent window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### showContextMenu

          void showContextMenu()
                        throws GeneralLeanFtException

      Displays this object's context menu.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.