Interface Accordion

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

public interface Accordion extends WebElement
An SAPUI5 accordion object.
  • Method Details

    • getItems

      List<String> getItems() throws GeneralLeanFtException
      Returns the list of the titles of all the panels contained in the accordion (separated by ;).
      Returns:
      the list of the titles of all the panels contained in the accordion (separated by ;).
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getSelectedItem

      String getSelectedItem() throws GeneralLeanFtException
      Gets the title of the selected panel.
      Returns:
      the title of the selected panel.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • expand

      void expand(String item) throws GeneralLeanFtException
      Expands the specified panel in the accordion.
      Parameters:
      item - the name of the panel to expand.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • expand

      void expand(int itemIndex) throws GeneralLeanFtException
      Expands the specified panel in the accordion.
      Parameters:
      itemIndex - the numeric index of the panel to expand. Index values are 1-based.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • collapse

      void collapse(String item) throws GeneralLeanFtException
      Collapses the specified panel in the accordion.
      Parameters:
      item - the name of the panel to collapse.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • collapse

      void collapse(int itemIndex) throws GeneralLeanFtException
      Collapses the specified panel in the accordion.
      Parameters:
      itemIndex - the numeric index of the panel to collapse. Index values are 1-based.
      Throws:
      GeneralLeanFtException - if error occurs during execution