Share this page

com.hp.lft.sdk.java

# Interface Menu

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface Menu
      extends UiObjectBase, TestObject

  A Java Menu.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `Menu` | `getSubMenu(java.lang.String subMenuPath)` Returns a sub-menu of this menu.
    `java.util.List<Menu>` | `getSubMenus()` Returns a list of the sub-menus that are direct children of this menu.
    `java.lang.String` | `getText()` Returns the menu's text.
    `void` | `select()` Selects this Java menu.
    `void` | `selectSubMenu(java.lang.String subMenuPath)` Selects the specified sub-menu.

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

      `createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isEnabled, isFocused, isVisible, sendKeys, sendKeys`

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

      `getNativeObject`

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

    - #### select

          void select()
               throws GeneralLeanFtException

      Selects this Java menu.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

      Returns the menu's text.
      Returns:
        the menu's text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSubMenu

                                                      Menu getSubMenu(java.lang.String subMenuPath)
                   throws GeneralLeanFtException

      Returns a sub-menu of this menu.
      Parameters:
        `subMenuPath` - the path of the sub-menu. Elements of the path are separated by semicolon (;).
      Returns:
        the Menu test object representing the sub-menu with the specified path.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectSubMenu

          void selectSubMenu(java.lang.String subMenuPath)
                      throws GeneralLeanFtException

      Selects the specified sub-menu.
      Parameters:
        `subMenuPath` - the path of the sub-menu. Elements of the path are separated by semicolon (;).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSubMenus

          java.util.List<Menu> getSubMenus()
                                    throws GeneralLeanFtException

      Returns a list of the sub-menus that are direct children of this menu.
      Returns:
        a list of direct child sub-menus.
      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: