Interface Menu

All Superinterfaces:
Clickable, LocationInfoProvider, SupportDragAndDrop, SupportsNativeObject, TestObject, TestObjectDescriber, VisibleProvider, WaitUntilVisibleProvider, WebElement, WebTestObject, WebTestObjectDescriber

public interface Menu extends WebElement
A menu control in a Web page or application.
  • 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 0-based. For a full path, separate items with commas.
      Returns:
      the menu path
    • getTopLevelMenuItems

      List<String> getTopLevelMenuItems() throws GeneralLeanFtException
      Returns the list of all the top level menu items contained in this menu.
      Returns:
      An array of strings containing the top level menu items in this menu.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

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

      void select(Object... menuPathParts) throws GeneralLeanFtException
      Selects the specified item in the menu by path.
      Parameters:
      menuPathParts - the menu path parts can be: logical name(string), full path(string), or numeric index(int).
      Index values are 0-based. For a full path, separate items with commas.
      Throws:
      GeneralLeanFtException - if error occurs during execution