Class HtmlFormMatchers

java.lang.Object
com._4point.testing.matchers.aem.HtmlFormMatchers

public class HtmlFormMatchers extends Object
Matchers for testing an AEM HTML5 Form.
  • Method Details

    • hasTitle

      public static org.hamcrest.TypeSafeDiagnosingMatcher<HtmlForm> hasTitle(String expectedTitle)
      Creates a Matcher that validates that an HTML Form's title.
      Parameters:
      expectedTitle - the expected value for the title
      Returns:
      the matcher
    • containsFieldLabel

      public static org.hamcrest.TypeSafeDiagnosingMatcher<HtmlForm> containsFieldLabel(String expectedFieldLabel)
      Creates a Matcher that validates that an HTML Form has a input field with a specific field label.
      Parameters:
      expectedFieldLabel - field label to match on
      Returns:
      the matcher