public class AttributePresent extends Object implements SeleniumCondition, JavaScriptCondition
Implementation of Condition for waiting, if given element's attribute is already present on the page.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
| Modifier | Constructor and Description |
|---|---|
protected |
AttributePresent()
Instantiates a new element present.
|
| Modifier and Type | Method and Description |
|---|---|
static AttributePresent |
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.
|
AttributePresent |
locator(AttributeLocator<?> attributeLocator)
Returns the AttributePresent instance with given attributeLocator set.
|
protected AttributePresent()
public boolean isTrue()
SeleniumConditionisTrue in interface SeleniumConditionpublic JavaScript getJavaScriptCondition()
JavaScriptConditiongetJavaScriptCondition in interface JavaScriptConditionpublic static AttributePresent getInstance()
public AttributePresent locator(AttributeLocator<?> attributeLocator)
attributeLocator - the attribute locatorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.