
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> |
isClickable()
Returns a condition holding if and only if the element is clickable (visible and enabled).
|
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
isEnabled()
Returns a condition holding if and only if the element is enabled.
|
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.
|
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 org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isClickable()
ElementConditionFactoryisClickable in interface ElementConditionFactorypublic StringConditionFactory text()
ElementConditionFactorytext in interface ElementConditionFactoryprotected WebElementConditionFactory copy()
copy in class AbstractBooleanConditionFactory<ElementConditionFactory>public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isEnabled()
ElementConditionFactoryisEnabled in interface ElementConditionFactoryCopyright © 2021 JBoss by Red Hat. All rights reserved.