public class HasCssClass extends UiCondition
Constructor and Description |
---|
HasCssClass(String name,
String cssClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(org.openqa.selenium.WebElement element)
Check if given element matches this condition.
|
static boolean |
hasClass(org.openqa.selenium.WebElement element,
String cssClass)
If element has one specific cssClass
|
String |
toString() |
actualValue, applyNull, fail, getName
public boolean apply(org.openqa.selenium.WebElement element)
UiCondition
apply
in interface com.google.common.base.Predicate<org.openqa.selenium.WebElement>
apply
in class UiCondition
element
- given WebElementpublic String toString()
toString
in class UiCondition
public static boolean hasClass(org.openqa.selenium.WebElement element, String cssClass)
element
- cssClass
- Copyright 2016, WorkFusion, Inc.