Interface Menubar

All Superinterfaces:
Element, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber

public interface Menubar extends Element
A menubar control in a SAP GUI for Windows application.
  • Method Details

    • getItems

      List<String> getItems() throws GeneralLeanFtException
      Returns the list of the items in the menu bar.
      Returns:
      the list.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • buildMenuPath

      String buildMenuPath(Object... menuPathParts) throws GeneralLeanFtException
      Returns the path of the specified menu item.
      Parameters:
      menuPathParts - The menu path elements can be: logical name(string), full path(string), or numeric index(int). Index values are 1-based. Separate path elements with a semicolon (;).
      Returns:
      the path of the specified menu item.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(String path) throws GeneralLeanFtException
      Selects an item from the menu bar. You can use the buildMenuPath method to build the item path string to be used as the itemPath argument for this method.
      Parameters:
      path - the full path of the menu item to select. The path is composed of the menu and sub-menu item names and/or numeric index numbers.
      Throws:
      GeneralLeanFtException - if error occurs during execution