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
    • isEnabled

      public boolean isEnabled()
      Whether the component is enabled or not
      Specified by:
      isEnabled in interface org.openqa.selenium.WebElement
      Overrides:
      isEnabled in class TestBenchElement
      Returns:
      true if the component is enabled.
    • getSummaryWrapper

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

      public void toggle()
      Expands or collapses the details