public interface WebElementFacade
extends org.openqa.selenium.WebElement, org.openqa.selenium.internal.WrapsElement, org.openqa.selenium.internal.Locatable
| Modifier and Type | Method and Description |
|---|---|
WebElementFacade |
and()
Convenience method to chain method calls more fluently.
|
void |
clear() |
void |
click()
Wait for an element to be visible and enabled, and then click on it.
|
boolean |
containsOnlyText(String value)
Does this element exactly match given text?
|
boolean |
containsSelectOption(String value)
Does this dropdown contain the specified value.
|
boolean |
containsText(String value)
Does this element contain a given text?
|
WebElementFacade |
find(org.openqa.selenium.By bySelector) |
WebElementFacade |
findBy(org.openqa.selenium.By selector) |
WebElementFacade |
findBy(String xpathOrCssSelector) |
String |
getAttribute(String name) |
String |
getSelectedValue() |
String |
getSelectedVisibleTextValue() |
List<String> |
getSelectOptions() |
String |
getText() |
String |
getTextValue() |
long |
getTimeoutInMilliseconds() |
String |
getValue() |
boolean |
hasFocus()
Does this element currently have the focus.
|
boolean |
isCurrentlyEnabled() |
boolean |
isCurrentlyVisible()
Is this web element present and visible on the screen
This method will not throw an exception if the element is not on the screen at all.
|
boolean |
isEnabled() |
boolean |
isPresent() |
boolean |
isSelected() |
boolean |
isVisible()
Is this web element present and visible on the screen
This method will not throw an exception if the element is not on the screen at all.
|
WebElementFacade |
selectByIndex(int indexValue) |
WebElementFacade |
selectByValue(String value) |
WebElementFacade |
selectByVisibleText(String label) |
void |
setWindowFocus() |
void |
shouldBeCurrentlyVisible()
Checks whether a web element is visible.
|
void |
shouldBeEnabled() |
void |
shouldBePresent() |
void |
shouldBeVisible()
Checks whether a web element is visible.
|
void |
shouldContainOnlyText(String textValue)
Check that an element exactly matches a text value
|
void |
shouldContainSelectedOption(String textValue) |
void |
shouldContainText(String textValue)
Check that an element contains a text value
|
void |
shouldNotBeCurrentlyVisible()
Checks whether a web element is not visible straight away.
|
void |
shouldNotBeEnabled() |
void |
shouldNotBePresent() |
void |
shouldNotBeVisible()
Checks whether a web element is not visible.
|
void |
shouldNotContainText(String textValue)
Check that an element does not contain a text value
|
WebElementFacade |
then()
Convenience method to chain method calls more fluently.
|
WebElementFacade |
then(org.openqa.selenium.By bySelector) |
WebElementFacade |
then(String xpathOrCssSelector) |
List<WebElementFacade> |
thenFindAll(org.openqa.selenium.By selector) |
List<WebElementFacade> |
thenFindAll(String xpathOrCssSelector) |
String |
toString() |
WebElementFacade |
type(String value)
Type a value into a field, making sure that the field is empty first.
|
WebElementFacade |
typeAndEnter(String value)
Type a value into a field and then press Enter, making sure that the field is empty first.
|
WebElementFacade |
typeAndTab(String value)
Type a value into a field and then press TAB, making sure that the field is empty first.
|
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> |
waitForCondition() |
WebElementFacade |
waitUntilDisabled() |
WebElementFacade |
waitUntilEnabled() |
WebElementFacade |
waitUntilNotVisible() |
WebElementFacade |
waitUntilPresent() |
WebElementFacade |
waitUntilVisible() |
WebElementFacade |
withTimeoutOf(int timeout,
TimeUnit unit) |
WebElementFacade then(String xpathOrCssSelector)
WebElementFacade findBy(String xpathOrCssSelector)
List<WebElementFacade> thenFindAll(String xpathOrCssSelector)
WebElementFacade findBy(org.openqa.selenium.By selector)
WebElementFacade find(org.openqa.selenium.By bySelector)
WebElementFacade then(org.openqa.selenium.By bySelector)
String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementList<WebElementFacade> thenFindAll(org.openqa.selenium.By selector)
long getTimeoutInMilliseconds()
WebElementFacade withTimeoutOf(int timeout, TimeUnit unit)
boolean isVisible()
WebElementFacade and()
WebElementFacade then()
boolean isCurrentlyVisible()
boolean isCurrentlyEnabled()
void shouldBeVisible()
void shouldBeCurrentlyVisible()
void shouldNotBeVisible()
void shouldNotBeCurrentlyVisible()
boolean hasFocus()
boolean containsText(String value)
boolean containsOnlyText(String value)
boolean containsSelectOption(String value)
void shouldContainText(String textValue)
textValue - void shouldContainOnlyText(String textValue)
textValue - void shouldContainSelectedOption(String textValue)
void shouldNotContainText(String textValue)
textValue - void shouldBeEnabled()
boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementvoid shouldNotBeEnabled()
WebElementFacade type(String value)
value - WebElementFacade typeAndEnter(String value)
value - WebElementFacade typeAndTab(String value)
value - void setWindowFocus()
WebElementFacade selectByVisibleText(String label)
String getSelectedVisibleTextValue()
WebElementFacade selectByValue(String value)
String getSelectedValue()
WebElementFacade selectByIndex(int indexValue)
boolean isPresent()
void shouldBePresent()
void shouldNotBePresent()
WebElementFacade waitUntilVisible()
WebElementFacade waitUntilPresent()
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
WebElementFacade waitUntilNotVisible()
String getValue()
boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementString getText()
getText in interface org.openqa.selenium.WebElementWebElementFacade waitUntilEnabled()
WebElementFacade waitUntilDisabled()
String getTextValue()
void click()
click in interface org.openqa.selenium.WebElementvoid clear()
clear in interface org.openqa.selenium.WebElementCopyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.