public class ElementAttribute extends FunctionalWrappingMatcher<org.openqa.selenium.WebElement,T>
WebElement.getAttribute(String)
Modifier | Constructor and Description |
---|---|
protected |
ElementAttribute(String name,
org.hamcrest.Matcher<String> matcher) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<org.openqa.selenium.WebElement> |
elementAttribute(String attributeName,
org.hamcrest.Matcher<String> matcher)
elementAttribute.
|
static <T> org.hamcrest.Matcher<org.openqa.selenium.WebElement> |
elementMapped(Function<org.openqa.selenium.WebElement,T> mapping,
org.hamcrest.Matcher<T> matcher)
elementMapped.
|
protected String |
getMappingDescription() |
protected void |
setMappingDescription(String mappingDescription) |
getMappingFunction, map, setMappingFunction, whenMapping
describeMismatchSafely, getInternalMatcher, matchesSafely, setInternalMatcher
public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> elementAttribute(String attributeName, org.hamcrest.Matcher<String> matcher)
elementAttribute.
attributeName
- name of attributematcher
- used to match attribute valuepublic void describeTo(org.hamcrest.Description description)
describeTo
in interface org.hamcrest.SelfDescribing
describeTo
in class FunctionalWrappingMatcher<org.openqa.selenium.WebElement,T>
protected String getMappingDescription()
protected void setMappingDescription(String mappingDescription)
public static <T> org.hamcrest.Matcher<org.openqa.selenium.WebElement> elementMapped(Function<org.openqa.selenium.WebElement,T> mapping, org.hamcrest.Matcher<T> matcher)
elementMapped.
T
- type of mapped valuemapping
- extracting value from elementmatcher
- matches mapped valueCopyright © 2017–2022 wcm.io QA. All rights reserved.