Class MarkdownLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.markdown.Markdown,MarkdownLocator>
com.vaadin.flow.component.markdown.MarkdownLocator
All Implemented Interfaces:
Clickable<com.vaadin.flow.component.markdown.Markdown>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class MarkdownLocator extends Locator<com.vaadin.flow.component.markdown.Markdown,MarkdownLocator> implements Clickable<com.vaadin.flow.component.markdown.Markdown>
Generated locator for Markdown, derived from MarkdownTester. 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

    • MarkdownLocator

      public MarkdownLocator()
      Creates a locator that searches for a Markdown.
    • MarkdownLocator

      public MarkdownLocator(com.vaadin.flow.component.markdown.Markdown component)
      Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.
      Parameters:
      component - the component the locator resolves to
  • Method Details

    • getComponent

      public com.vaadin.flow.component.markdown.Markdown getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<com.vaadin.flow.component.markdown.Markdown>
      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<com.vaadin.flow.component.markdown.Markdown>
    • getContent

      public String getContent()
      Gets the Markdown source content rendered by the component. Javadoc copied from MarkdownTester.getContent().
      Returns:
      the Markdown content, never null
      Throws:
      IllegalStateException - if the component is not usable