public class WebElementConditionFactory extends AbstractBooleanConditionFactory<ElementConditionFactory> implements ElementConditionFactory
| Constructor and Description |
|---|
WebElementConditionFactory(org.openqa.selenium.WebElement element) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
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 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 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 © 2012 JBoss by Red Hat. All Rights Reserved.