Class DetailsLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<Details,DetailsLocator>
com.vaadin.flow.component.details.DetailsLocator
All Implemented Interfaces:
Clickable<Details>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class DetailsLocator extends Locator<Details,DetailsLocator> implements Clickable<Details>
Generated locator for Details, derived from DetailsTester. 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

    • DetailsLocator

      public DetailsLocator()
    • DetailsLocator

      public DetailsLocator(Details component)
  • Method Details

    • getComponent

      public Details getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<Details>
      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<Details>
    • openDetails

      public void openDetails()
      Shows contents as if the summary is clicked on the browser. An exception will be thrown if the details are already open. Javadoc copied from DetailsTester.openDetails().
      Throws:
      IllegalStateException - if the component is not usable or if the details are already open.
    • closeDetails

      public void closeDetails()
      Hides contents as if the summary is clicked on the browser. An exception will be thrown if the details are not open. Javadoc copied from DetailsTester.closeDetails().
      Throws:
      IllegalStateException - if the component is not usable or if the details are not open.
    • toggleDetails

      public void toggleDetails()
      Toggles details visibility, as if the summary is clicked on the browser. Javadoc copied from DetailsTester.toggleDetails().
    • isOpen

      public boolean isOpen()
      Checks if the details are open. Javadoc copied from DetailsTester.isOpen().
      Returns:
      true if the details are open, otherwise false.