@PublicApi public final class PageElementMatchers extends Object
PageElements.| Modifier and Type | Method and Description |
|---|---|
static <PE extends PageElement,PEE extends PE> |
asMatcherOf(Class<PEE> targetType,
org.hamcrest.Matcher<PE> original) |
static org.hamcrest.Matcher<CheckboxElement> |
isChecked() |
static org.hamcrest.Matcher<PageElement> |
withAttribute(String name,
String expectedValue) |
static org.hamcrest.Matcher<PageElement> |
withAttributeThat(String name,
org.hamcrest.Matcher<String> valueMatcher) |
static org.hamcrest.Matcher<PageElement> |
withClass(String expectedClass) |
static org.hamcrest.Matcher<PageElement> |
withClassThat(org.hamcrest.Matcher<String> classMatcher) |
static org.hamcrest.Matcher<PageElement> |
withDataAttribute(String name,
String expectedValue) |
static org.hamcrest.Matcher<PageElement> |
withDataAttributeThat(String name,
org.hamcrest.Matcher<String> valueMatcher) |
static org.hamcrest.Matcher<PageElement> |
withId(String expectedId) |
static org.hamcrest.Matcher<PageElement> |
withIdThat(org.hamcrest.Matcher<String> idMatcher) |
static org.hamcrest.Matcher<PageElement> |
withText(String expectedText) |
static org.hamcrest.Matcher<PageElement> |
withTextThat(org.hamcrest.Matcher<String> textMatcher) |
@Nonnull public static <PE extends PageElement,PEE extends PE> org.hamcrest.Matcher<PEE> asMatcherOf(@Nonnull Class<PEE> targetType, @Nonnull org.hamcrest.Matcher<PE> original)
@Nonnull public static org.hamcrest.Matcher<CheckboxElement> isChecked()
@Nonnull public static org.hamcrest.Matcher<PageElement> withAttribute(@Nonnull String name, @Nullable String expectedValue)
@Nonnull public static org.hamcrest.Matcher<PageElement> withAttributeThat(@Nonnull String name, @Nonnull org.hamcrest.Matcher<String> valueMatcher)
@Nonnull public static org.hamcrest.Matcher<PageElement> withClass(@Nonnull String expectedClass)
@Nonnull public static org.hamcrest.Matcher<PageElement> withClassThat(@Nonnull org.hamcrest.Matcher<String> classMatcher)
@Nonnull public static org.hamcrest.Matcher<PageElement> withDataAttribute(@Nonnull String name, @Nullable String expectedValue)
@Nonnull public static org.hamcrest.Matcher<PageElement> withDataAttributeThat(@Nonnull String name, @Nonnull org.hamcrest.Matcher<String> valueMatcher)
@Nonnull public static org.hamcrest.Matcher<PageElement> withId(@Nullable String expectedId)
@Nonnull public static org.hamcrest.Matcher<PageElement> withIdThat(@Nonnull org.hamcrest.Matcher<String> idMatcher)
@Nonnull public static org.hamcrest.Matcher<PageElement> withText(@Nullable String expectedText)
@Nonnull public static org.hamcrest.Matcher<PageElement> withTextThat(@Nonnull org.hamcrest.Matcher<String> textMatcher)
Copyright © 2015 Atlassian. All rights reserved.