|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.pages.WebElementFacade
public class WebElementFacade
A proxy class for a web element, providing some more methods.
| Constructor Summary | |
|---|---|
WebElementFacade(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement webElement,
long timeoutInMilliseconds)
|
|
| Method Summary | |
|---|---|
WebElementFacade |
and()
Convenience method to chain method calls more fluently. |
void |
clear()
|
WebElementFacade |
click()
Wait for an element to be visible and enabled, and then click on it. |
boolean |
containsSelectOption(String value)
Does this dropdown contain the specified value. |
boolean |
containsText(String value)
Does this element contain a given text? |
protected InternalSystemClock |
getClock()
|
protected JavascriptExecutorFacade |
getJavascriptExecutorFacade()
|
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 |
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 selector)
|
WebElementFacade |
then(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebElementFacade(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement webElement,
long timeoutInMilliseconds)
| Method Detail |
|---|
protected JavascriptExecutorFacade getJavascriptExecutorFacade()
protected InternalSystemClock getClock()
public WebElementFacade then(String xpathOrCssSelector)
public WebElementFacade then(org.openqa.selenium.By selector)
public long getTimeoutInMilliseconds()
public WebElementFacade withTimeoutOf(int timeout,
TimeUnit unit)
public boolean isVisible()
public WebElementFacade and()
public WebElementFacade then()
public boolean isCurrentlyVisible()
public boolean isCurrentlyEnabled()
public void shouldBeVisible()
public void shouldBeCurrentlyVisible()
public void shouldNotBeVisible()
public void shouldNotBeCurrentlyVisible()
public boolean hasFocus()
public boolean containsText(String value)
public boolean containsSelectOption(String value)
public List<String> getSelectOptions()
public void shouldContainText(String textValue)
textValue - public void shouldContainSelectedOption(String textValue)
public void shouldNotContainText(String textValue)
textValue - public void shouldBeEnabled()
public boolean isEnabled()
public void shouldNotBeEnabled()
public WebElementFacade type(String value)
value - public WebElementFacade typeAndEnter(String value)
value - public WebElementFacade typeAndTab(String value)
value - public void setWindowFocus()
public WebElementFacade selectByVisibleText(String label)
public String getSelectedVisibleTextValue()
public WebElementFacade selectByValue(String value)
public String getSelectedValue()
public WebElementFacade selectByIndex(int indexValue)
public boolean isPresent()
public void shouldBePresent()
public void shouldNotBePresent()
public WebElementFacade waitUntilVisible()
public WebElementFacade waitUntilPresent()
public org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
public WebElementFacade waitUntilNotVisible()
public String getValue()
public boolean isSelected()
public String getText()
public WebElementFacade waitUntilEnabled()
public WebElementFacade waitUntilDisabled()
public String getTextValue()
public WebElementFacade click()
public void clear()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||