Interface Menu

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

public interface Menu extends UiObjectBase, TestObject
A .NET WPF menu object.
  • Method Details

    • buildMenuPath

      String buildMenuPath(Object... menuPathParts)
      Returns the path constructed from the path parts.
      Parameters:
      menuPathParts - The menu path parts can be: logical name(string), full path(comma-separated strings), or index(1-based).
      Returns:
      the path of the specified menu item.
    • select

      void select(MenuItem item) throws GeneralLeanFtException
      Selects the specified item in the menu.
      You can use getItem(String) to get the item to use as the item argument.
      Parameters:
      item - item to select
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(String itemPath) throws GeneralLeanFtException
      Selects the item at the specified path in the menu.
      You can use buildMenuPath(Object...) to build the itemPath argument.
      Parameters:
      itemPath - the path of the item to select. To specify the 1-based index of the item to select, use <Item #>.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getItem

      MenuItem getItem(String itemPath) throws GeneralLeanFtException
      Returns the item at the specified path in the menu.
      Parameters:
      itemPath - the full path of the menu item to select from the list. The path is composed of the menu item names or a 1-based index separated by a semicolon. To specify the 1-based index of the item to select, use <Item #>.
      Returns:
      MenuItem representing the menu item.
      Throws:
      GeneralLeanFtException - if error occurs during execution