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> |
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, setNegation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
not
protected 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()
ElementConditionFactory
isVisible
in interface ElementConditionFactory
public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isPresent()
BasicConditionFactory
isPresent
in interface BasicConditionFactory<ElementConditionFactory>
public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isSelected()
ElementConditionFactory
isSelected
in interface ElementConditionFactory
public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> isEnabled()
ElementConditionFactory
isEnabled
in interface ElementConditionFactory
public StringConditionFactory text()
ElementConditionFactory
text
in interface ElementConditionFactory
protected ElementConditionFactory copy()
copy
in class AbstractBooleanConditionFactory<ElementConditionFactory>
public AttributeConditionFactory attribute(String attribute)
ElementConditionFactory
attribute
in interface ElementConditionFactory
protected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by, org.openqa.selenium.WebDriver driver)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.