Class AccordionLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<Accordion,AccordionLocator>
com.vaadin.flow.component.accordion.AccordionLocator
All Implemented Interfaces:
Clickable<Accordion>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class AccordionLocator extends Locator<Accordion,AccordionLocator> implements Clickable<Accordion>
Generated locator for Accordion, derived from AccordionTester. Filter steps are inherited from Locator; action methods delegate to a fresh tester around the resolved component, so behavioral changes belong on the tester, not here.
  • Constructor Details

    • AccordionLocator

      public AccordionLocator()
    • AccordionLocator

      public AccordionLocator(Accordion component)
  • Method Details

    • getComponent

      public Accordion getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<Accordion>
      Returns:
      the component under test
    • ensureComponentIsUsable

      public void ensureComponentIsUsable()
      Description copied from interface: Clickable
      Ensures the component is in a usable state before interaction.
      Specified by:
      ensureComponentIsUsable in interface Clickable<Accordion>
    • openDetails

      public void openDetails(String summary)
      Open the accordion with the given summary. Javadoc copied from AccordionTester.openDetails(java.lang.String).
      Parameters:
      summary - summary of accordion panel
      Throws:
      IllegalArgumentException - if no dropdown panel found for summary
    • closeDetails

      public void closeDetails()
      Close the open accordion panel, as if the user clicked its summary. An exception will be thrown if no panel is open. Javadoc copied from AccordionTester.closeDetails().
      Throws:
      IllegalStateException - if the component is not usable or if no panel is open
      Since:
      25.3
    • closeDetails

      public void closeDetails(String summary)
      Close the accordion panel with the given summary, as if the user clicked its summary. An exception will be thrown if the panel is not the open one. Javadoc copied from AccordionTester.closeDetails(java.lang.String).
      Parameters:
      summary - summary of accordion panel
      Throws:
      IllegalArgumentException - if no dropdown panel found for summary
      IllegalStateException - if the component is not usable or if the panel is not open
      Since:
      25.3
    • toggleDetails

      public void toggleDetails(String summary)
      Toggle the accordion panel with the given summary, as if the user clicked its summary. An open panel is closed, a closed panel is opened. Note that an accordion has at most one open panel, so opening a panel closes whichever panel was open before. Javadoc copied from AccordionTester.toggleDetails(java.lang.String).
      Parameters:
      summary - summary of accordion panel
      Throws:
      IllegalArgumentException - if no dropdown panel found for summary
      IllegalStateException - if the component is not usable
      Since:
      25.3
    • isOpen

      public boolean isOpen(String summary)
      Check if accordion with the summary is open. Javadoc copied from AccordionTester.isOpen(java.lang.String).
      Parameters:
      summary - summary of accordion panel
      Returns:
      true if panel is open
    • getPanel

      public AccordionPanel getPanel(String summary)
      Get the panel with the summary. Throws if panel is not open. Javadoc copied from AccordionTester.getPanel(java.lang.String).
      Parameters:
      summary - summary of accordion panel
      Returns:
      AccordionPanel for the given summary
    • hasPanel

      public boolean hasPanel(String summary)
      Check if a panel for summary exists in accordion. Javadoc copied from AccordionTester.hasPanel(java.lang.String).
      Parameters:
      summary - summary of accordion panel
      Returns:
      true if panel exists