public class WebElementConditionFactory extends AbstractBooleanConditionFactory<ElementConditionFactory> implements ElementConditionFactory
| Constructor and Description |
|---|
WebElementConditionFactory(org.openqa.selenium.WebElement element) |
| Modifier and Type | Method and Description |
|---|---|
AttributeConditionFactory |
attribute(String attribute)
Returns a condition factory for the given attribute.
|
protected WebElementConditionFactory |
copy() |
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
isPresent()
Returns a condition holding if and only if the object is present on the page.
|
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
isSelected()
Returns a condition holding if and only if the element is selected.
|
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
isVisible()
Returns a condition holding if and only if the element is visible (present and displayed).
|
StringConditionFactory |
text()
Returns a String condition factory for inner text of the element.
|
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
textContains(String expected)
Returns a condition holding if and only if the element contains the given text.
|
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
textEquals(String expected)
Returns a condition holding if and only if the text inside the element
equals to the given one.
|
getNegation, not, setNegationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotpublic WebElementConditionFactory(org.openqa.selenium.WebElement element)
public AttributeConditionFactory attribute(String attribute)
ElementConditionFactoryattribute in interface ElementConditionFactorypublic org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isPresent()
BasicConditionFactoryisPresent in interface BasicConditionFactory<ElementConditionFactory>public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isSelected()
ElementConditionFactoryisSelected in interface ElementConditionFactorypublic org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isVisible()
ElementConditionFactoryisVisible in interface ElementConditionFactorypublic StringConditionFactory text()
ElementConditionFactorytext in interface ElementConditionFactorypublic org.openqa.selenium.support.ui.ExpectedCondition<Boolean> textContains(String expected)
ElementConditionFactorytextContains in interface ElementConditionFactorypublic org.openqa.selenium.support.ui.ExpectedCondition<Boolean> textEquals(String expected)
ElementConditionFactorytextEquals in interface ElementConditionFactoryprotected WebElementConditionFactory copy()
copy in class AbstractBooleanConditionFactory<ElementConditionFactory>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.