Class MarkdownElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.markdown.testbench.MarkdownElement
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 MarkdownElement extends TestBenchElement
A TestBench element representing a <vaadin-markdown> element.
  • Constructor Details

    • MarkdownElement

      public MarkdownElement()
  • Method Details

    • getContent

      public String getContent()
      Gets the Markdown content of the element.

      The DOM does not typically contain the Markdown content as such. Use the regular TestBench APIs, such as HasElementQuery.$(String), to access the effective DOM with the rendered Markdown content.