Share this page

com.hp.lft.sdk.sap.gui

## Interface Element

- All Superinterfaces:
    LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber
  All Known Subinterfaces:
    APOGrid, Button, Calendar, CheckBox, ComboBox, EditField, Editor, Grid, Label, Menubar, OKCode, RadioButton, StatusBar, TabControl, Table, TableBase<T>, ToolBar, TreeView, Window

      public interface Element
      extends TestObject, LocationInfoProvider, SupportsNativeObject

  An object in a SAP GUI for Windows application.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getId()` Returns the element's unique identifier in text format.
    `java.lang.String` | `getName()` Returns the name of the element.
    `ComponentType` | `getType()` Returns the GUI component type of this element.

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

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

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

      `describe`

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

      `getAbsoluteLocation, getLocation, getSize`

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

      `getNativeObject`

- - ### Method Detail

    - #### getType

                                                      ComponentType getType()
                         throws GeneralLeanFtException

      Returns the GUI component type of this element.
      Returns:
        the component type.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getId

          java.lang.String getId()
                          throws GeneralLeanFtException

      Returns the element's unique identifier in text format.
      Returns:
        the unique identifier.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getName

          java.lang.String getName()
                            throws GeneralLeanFtException

      Returns the name of the element.
      Returns:
        the name of the element.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: