
public class ElementLocatorConditionFactory extends AbstractBooleanConditionFactory<ElementConditionFactory> implements ElementConditionFactory
| Constructor and Description |
|---|
ElementLocatorConditionFactory(org.openqa.selenium.By locator) |
ElementLocatorConditionFactory(org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By locator) |
| Modifier and Type | Method and Description |
|---|---|
AttributeConditionFactory |
attribute(String attribute)
Returns a condition factory for the given attribute.
|
protected ElementConditionFactory |
copy() |
protected org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by,
org.openqa.selenium.WebDriver driver) |
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, waitnotprotected static final Logger LOGGER
public ElementLocatorConditionFactory(org.openqa.selenium.By locator)
public ElementLocatorConditionFactory(org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By locator)
public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isVisible()
ElementConditionFactoryisVisible in interface ElementConditionFactorypublic org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isClickable()
ElementConditionFactoryisClickable 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> isEnabled()
ElementConditionFactoryisEnabled in interface ElementConditionFactorypublic StringConditionFactory text()
ElementConditionFactorytext in interface ElementConditionFactoryprotected ElementConditionFactory copy()
copy in class AbstractBooleanConditionFactory<ElementConditionFactory>public AttributeConditionFactory attribute(String attribute)
ElementConditionFactoryattribute in interface ElementConditionFactoryprotected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by,
org.openqa.selenium.WebDriver driver)
Copyright © 2021 JBoss by Red Hat. All rights reserved.