|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.arquillian.ajocado.waiting.conditions.StyleEquals
public class StyleEquals
Implementation of Condition for waiting if element given by elementLocator has given CSS style property's value equal to given value.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
Constructor Summary | |
---|---|
protected |
StyleEquals()
Instantiates a new text equals. |
Method Summary | |
---|---|
static StyleEquals |
getInstance()
Factory method. |
JavaScript |
getJavaScriptCondition()
Gets JavaScript which define condition what it should be waited for satisfaction. |
boolean |
isTrue()
Returns true if condition is satisfied, false if it isn't. |
StyleEquals |
locator(ElementLocator<?> elementLocator)
Returns the StyleEquals instance with given elementLocator set. |
StyleEquals |
property(CssProperty cssProperty)
Returns the StyleEquals instance with CSS property preset. |
StyleEquals |
value(String value)
Returns the StyleEquals instance with value set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StyleEquals()
Method Detail |
---|
public boolean isTrue()
SeleniumCondition
isTrue
in interface SeleniumCondition
public JavaScript getJavaScriptCondition()
JavaScriptCondition
getJavaScriptCondition
in interface JavaScriptCondition
public static StyleEquals getInstance()
public StyleEquals locator(ElementLocator<?> elementLocator)
Returns the StyleEquals instance with given elementLocator set.
From this locator will be obtained the CSS property.
elementLocator
- the element locator
public StyleEquals property(CssProperty cssProperty)
Returns the StyleEquals instance with CSS property preset.
This CSS property will be obtained in way to compare equality to given value.
cssProperty
- the property to obtain
public StyleEquals value(String value)
Returns the StyleEquals instance with value set.
For equality with this value the condition will wait.
value
- it should wait for equality
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |