Package com._4point.testing.matchers.aem
Class HtmlFormMatchers
java.lang.Object
com._4point.testing.matchers.aem.HtmlFormMatchers
Matchers for testing an AEM HTML5 Form.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static org.hamcrest.TypeSafeDiagnosingMatcher<HtmlForm> Creates a Matcher that validates that an HTML Form's title.
-
Method Details
-
hasTitle
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
-