Class CardElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.card.testbench.CardElement
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

public class CardElement extends TestBenchElement
A TestBench element representing a <vaadin-card> element.
  • Constructor Details

    • CardElement

      public CardElement()
  • Method Details

    • getContents

      public List<TestBenchElement> getContents()
      Gets the content elements.
      Returns:
      the content elements
    • getTitle

      public TestBenchElement getTitle()
      Gets the element in the title slot.
      Returns:
      the title element, or null if not found
    • getStringTitle

      public String getStringTitle()
      Gets the title property value.
      Returns:
      title property value
    • getSubtitle

      public TestBenchElement getSubtitle()
      Gets the element in the subtitle slot.
      Returns:
      the subtitle element, or null if not found
    • getMedia

      public TestBenchElement getMedia()
      Gets the element in the media slot.
      Returns:
      the media element, or null if not found
    • getHeader

      public TestBenchElement getHeader()
      Gets the element in the header slot.
      Returns:
      the title element, or null if not found
    • getHeaderPrefix

      public TestBenchElement getHeaderPrefix()
      Gets the element in the header prefix slot.
      Returns:
      the header prefix element, or null if not found
    • getHeaderSuffix

      public TestBenchElement getHeaderSuffix()
      Gets the element in the header suffix slot.
      Returns:
      the header suffix element, or null if not found
    • getFooterContents

      public List<TestBenchElement> getFooterContents()
      Gets the elements in the footer slot.
      Returns:
      the footer elements