public final class WebElementMatchers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<Iterable<T>> |
containsAtLeast(org.hamcrest.Matcher<T> elementMatcher,
int numberOfMatchingItems) |
static org.hamcrest.Matcher<org.openqa.selenium.WebElement> |
tagNameEqual(String expectedTagName) |
static org.hamcrest.Matcher<org.openqa.selenium.WebElement> |
withText(String expectedText) |
static org.hamcrest.Matcher<org.openqa.selenium.WebElement> |
withTextThat(org.hamcrest.Matcher<String> textMatcher) |
public static <T> org.hamcrest.Matcher<Iterable<T>> containsAtLeast(org.hamcrest.Matcher<T> elementMatcher, int numberOfMatchingItems)
@Nonnull public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> withText(@Nullable String expectedText)
expectedText - expected textWebElement text@Nonnull public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> withTextThat(@Nonnull org.hamcrest.Matcher<String> textMatcher)
textMatcher - text matcherWebElement textpublic static org.hamcrest.Matcher<org.openqa.selenium.WebElement> tagNameEqual(String expectedTagName)
Copyright © 2015 Atlassian. All rights reserved.