Class AnchorTester


public class AnchorTester extends HtmlContainerTester<Anchor>
  • Constructor Details

    • AnchorTester

      public AnchorTester(Anchor component)
      Wrap given component for testing.
      Parameters:
      component - target component
  • Method Details

    • getHref

      public String getHref()
      Gets the URL that the anchor links to.
      Returns:
      the href value, or "" if no href has been set
    • click

      public HasElement click()
      Click the anchor for navigation if target is a registered route in the application.
      Returns:
      navigated view
      Throws:
      IllegalStateException - if anchor href is not a String or not a route