public class AttributeEquals extends Object implements SeleniumCondition, JavaScriptCondition
Implementation of Condition for waiting if element's attribute given by attributeLocator has value equal to given value.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
| Modifier | Constructor and Description |
|---|---|
protected |
AttributeEquals()
Instantiates a new AttributeEquals
|
| Modifier and Type | Method and Description |
|---|---|
static AttributeEquals |
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.
|
AttributeEquals |
locator(AttributeLocator<?> attributeLocator)
Returns the AttributeEquals instance with given attributeLocator preset.
|
AttributeEquals |
text(String value)
Returns the AttributeEquals instance with preset value.
|
public boolean isTrue()
SeleniumConditionisTrue in interface SeleniumConditionpublic JavaScript getJavaScriptCondition()
JavaScriptConditiongetJavaScriptCondition in interface JavaScriptConditionpublic static AttributeEquals getInstance()
public AttributeEquals locator(AttributeLocator<?> attributeLocator)
Returns the AttributeEquals instance with given attributeLocator preset.
From this element's attribute will be obtained the value.
attributeLocator - the attribute locatorpublic AttributeEquals text(String value)
Returns the AttributeEquals instance with preset value.
For equality with this value the condition will wait.
value - it should wait for equalityCopyright © 2013 JBoss by Red Hat. All Rights Reserved.