Class Accordion

All Implemented Interfaces:
Container, SpecificConditionHandler, ByLocator, SelenideElementWrapper<Accordion>

public class Accordion extends AbstractComponent<Accordion> implements Container
Web-element wrapper for accordion. Supports working with accordion panels.
  • Constructor Details

    • Accordion

      public Accordion(org.openqa.selenium.By by)
  • Method Details

    • getPanelById

      public Accordion.Panel getPanelById(String panelUiTestId)
      Parameters:
      panelUiTestId - UI_TEST_ID attribute value pf the accordion panel web-element
      Returns:
      web-element wrapper for accordion panel found by the passed ID
    • getPanelByText

      public Accordion.Panel getPanelByText(String panelText)
      Parameters:
      panelText - accordion panel heading text
      Returns:
      web-element wrapper for accordion panel found by the passed heading text
    • getPanelBy

      public Accordion.Panel getPanelBy(org.openqa.selenium.By by)
      Parameters:
      by - By selector to find accordion panel
      Returns:
      web-element wrapper for accordion panel found by the passed By selector
    • getPanelByTextBy

      protected org.openqa.selenium.By getPanelByTextBy(String panelText)