public class ElementCssProperty extends FunctionalWrappingMatcher<org.openqa.selenium.WebElement,T>
WebElement.getCssValue(String)
.Modifier | Constructor and Description |
---|---|
protected |
ElementCssProperty(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> |
elementCssProperty(String name,
org.hamcrest.Matcher<String> matcher)
elementCssProperty.
|
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> elementCssProperty(String name, org.hamcrest.Matcher<String> matcher)
elementCssProperty.
name
- name of CSS propertymatcher
- to match CSS valueElementCssProperty
matcherpublic 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.