Interface Menu

All Superinterfaces:
TestObject, TestObjectDescriber

public interface Menu extends TestObject
A standard Windows menu.
  • Method Details

    • buildMenuPath

      String buildMenuPath(Object... menuPathParts)
      Returns the path of the specified menu item.
      Parameters:
      menuPathParts - the menu path parts can be: logical name(string), full path(string), or numeric index(int).
      Index values are 1-based. For a full path, separate items with commas.
      Returns:
      the menu path
    • getType

      Returns the type of the menu. Possible values: MenuType
      Returns:
      the type of the menu.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(MenuItem item) throws GeneralLeanFtException
      Selects the specified item in the menu by MenuItem.
      Parameters:
      item - specified menu item to select from the menu.
      Tip: Use the GetItem method to get the item to be used as the item argument for this method.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(String itemPath) throws GeneralLeanFtException
      Selects the specified item in the menu by path.
      Parameters:
      itemPath - the full path of the menu item to return. To specify the index of the item to select, use <Item #>.
      Index values begin with 1.
      Tip: Use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getItem

      MenuItem getItem(String itemPath) throws GeneralLeanFtException
      Returns the menu item with the specified path. Tip: To check whether the item exists, use the MenuItem.Exists property.
      Parameters:
      itemPath - the full path of the menu item to return. To specify the index of the item to select, use <Item #>.
      Index values begin with 1.
      Tip: Use the BuildMenuPath method to build the item path string to be used as the itemPath argument for this method.
      Returns:
      the menu item (MenuItem) found at the specified item path
      Throws:
      GeneralLeanFtException - if error occurs during execution