Class DetailsElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.details.testbench.DetailsElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement
Direct Known Subclasses:
AccordionPanelElement

public class DetailsElement extends TestBenchElement
  • Constructor Details

    • DetailsElement

      public DetailsElement()
  • Method Details

    • getSummary

      public TestBenchElement getSummary()
      Returns summary element
    • getSummaryText

      public String getSummaryText()
      Returns summary element as string
    • getContent

      public TestBenchElement getContent()
      Returns content element
    • isOpened

      public boolean isOpened()
      Whether the details are opened or not
    • getSummaryWrapper

      public TestBenchElement getSummaryWrapper()
      Returns a wrapper of the summary component
    • toggle

      public void toggle()
      Expands or collapses the details