public class WebElementFacadeStub extends Object implements WebElementFacade, WebElementState
| Constructor and Description |
|---|
WebElementFacadeStub() |
| 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.
|
void |
click(ClickStrategy clickStrategy) |
boolean |
containsElements(org.openqa.selenium.By selector) |
boolean |
containsElements(String xpathOrCssSelector) |
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?
|
boolean |
containsValue(String value)
Does this element contain a given value attribute?
|
void |
contextClick() |
FluentDropdownDeselect |
deselect() |
WebElementFacade |
deselectAll() |
WebElementFacade |
deselectByIndex(int indexValue) |
WebElementFacade |
deselectByValue(String value) |
WebElementFacade |
deselectByVisibleText(String label) |
void |
doubleClick() |
WebElementState |
expect(String errorMessage) |
protected WebElementState |
expectingErrorMessage(String errorMessage) |
WebElementFacade |
find(org.openqa.selenium.By bySelector) |
WebElementFacade |
findBy(org.openqa.selenium.By selector) |
WebElementFacade |
findBy(String xpathOrCssSelector) |
WebElementFacade |
findBy(String xpathOrCssSelector,
Object... arguments) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
findElement(String by,
String using) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List |
findElements(String by,
String using) |
ListOfWebElementFacades |
findNestedElementsMatching(ResolvableElement nestedElement) |
String |
getAttribute(String name) |
org.openqa.selenium.interactions.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
Duration |
getCurrentImplicitTimeout() |
org.openqa.selenium.WebElement |
getElement() |
String |
getFirstSelectedOptionValue() |
String |
getFirstSelectedOptionVisibleText() |
long |
getImplicitTimeoutInMilliseconds() |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
String |
getSelectedValue() |
List<String> |
getSelectedValues() |
List<String> |
getSelectedVisibleTexts() |
String |
getSelectedVisibleTextValue() |
List<String> |
getSelectOptions() |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
String |
getTextContent() |
String |
getTextValue() |
String |
getValue() |
org.openqa.selenium.WebElement |
getWrappedElement() |
boolean |
hasClass(String cssClassName) |
boolean |
hasFocus()
Does this element currently have the focus.
|
boolean |
isClickable() |
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 |
isDisabled() |
boolean |
isDisplayed() |
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.
|
Duration |
resetTimeouts() |
FluentDropdownSelect |
select() |
WebElementFacade |
selectByIndex(int indexValue) |
WebElementFacade |
selectByValue(String value) |
WebElementFacade |
selectByVisibleText(String label) |
void |
sendKeys(CharSequence... keysToSend) |
void |
setImplicitTimeout(Duration implicitTimeout) |
void |
setWindowFocus() |
WebElementState |
shouldBeCurrentlyVisible()
Checks whether a web element is visible.
|
WebElementState |
shouldBeEnabled() |
WebElementState |
shouldBePresent() |
WebElementState |
shouldBeSelected() |
WebElementState |
shouldBeVisible()
Checks whether a web element is visible.
|
WebElementState |
shouldContainElements(org.openqa.selenium.By selector) |
WebElementState |
shouldContainElements(String xpathOrCssSelector) |
WebElementState |
shouldContainOnlyText(String textValue)
Check that an element exactly matches a text value
|
WebElementState |
shouldContainSelectedOption(String textValue) |
WebElementState |
shouldContainText(String textValue)
Check that an element contains a text value
|
WebElementState |
shouldNotBeCurrentlyVisible()
Checks whether a web element is not visible straight away.
|
WebElementState |
shouldNotBeEnabled() |
WebElementState |
shouldNotBePresent() |
WebElementState |
shouldNotBeSelected() |
WebElementState |
shouldNotBeVisible()
Checks whether a web element is not visible.
|
WebElementState |
shouldNotContainText(String textValue)
Check that an element does not contain a text value
|
void |
submit() |
WebElementFacade |
then()
Convenience method to chain method calls more fluently.
|
WebElementFacade |
then(org.openqa.selenium.By bySelector) |
WebElementFacade |
then(String xpathOrCssSelector) |
WebElementFacade |
then(String xpathOrCssSelector,
Object... arguments) |
WebElementFacade |
thenFind(String xpathOrCssSelector) |
WebElementFacade |
thenFind(String xpathOrCssSelector,
Object... arguments) |
ListOfWebElementFacades |
thenFindAll(org.openqa.selenium.By... selector) |
ListOfWebElementFacades |
thenFindAll(String xpathOrCssSelector) |
ListOfWebElementFacades |
thenFindAll(String xpathOrCssSelector,
Object... arguments) |
String |
toString() |
WebElementFacade |
type(CharSequence... keysToSend)
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 |
waitUntilClickable() |
WebElementFacade |
waitUntilDisabled() |
WebElementFacade |
waitUntilEnabled() |
WebElementFacade |
waitUntilNotVisible() |
WebElementFacade |
waitUntilPresent() |
WebElementFacade |
waitUntilVisible() |
WebElementFacade |
withTimeoutOf(Duration duration) |
WebElementFacade |
withTimeoutOf(int timeout,
TemporalUnit unit) |
WebElementFacade |
withTimeoutOf(int timeout,
TimeUnit unit) |
public org.openqa.selenium.WebElement getElement()
getElement in interface WebElementFacadepublic ListOfWebElementFacades findNestedElementsMatching(ResolvableElement nestedElement)
findNestedElementsMatching in interface WebElementFacadepublic WebElementFacade then(String xpathOrCssSelector)
then in interface WebElementFacadepublic WebElementFacade thenFind(String xpathOrCssSelector)
thenFind in interface WebElementFacadepublic WebElementFacade thenFind(String xpathOrCssSelector, Object... arguments)
thenFind in interface WebElementFacadepublic WebElementFacade then(String xpathOrCssSelector, Object... arguments)
then in interface WebElementFacadepublic WebElementFacade findBy(String xpathOrCssSelector)
findBy in interface WebElementFacadepublic WebElementFacade findBy(String xpathOrCssSelector, Object... arguments)
findBy in interface WebElementFacadepublic ListOfWebElementFacades thenFindAll(String xpathOrCssSelector)
thenFindAll in interface WebElementFacadepublic ListOfWebElementFacades thenFindAll(String xpathOrCssSelector, Object... arguments)
thenFindAll in interface WebElementFacadepublic WebElementFacade findBy(org.openqa.selenium.By selector)
findBy in interface WebElementFacadepublic WebElementFacade find(org.openqa.selenium.By bySelector)
find in interface WebElementFacadepublic WebElementFacade then(org.openqa.selenium.By bySelector)
then in interface WebElementFacadepublic String getAttribute(String name)
getAttribute in interface WebElementFacadegetAttribute in interface WebElementStategetAttribute in interface org.openqa.selenium.WebElementpublic ListOfWebElementFacades thenFindAll(org.openqa.selenium.By... selector)
thenFindAll in interface WebElementFacadepublic long getImplicitTimeoutInMilliseconds()
getImplicitTimeoutInMilliseconds in interface WebElementFacadepublic WebElementFacade withTimeoutOf(int timeout, TimeUnit unit)
withTimeoutOf in interface WebElementFacadepublic WebElementFacade withTimeoutOf(int timeout, TemporalUnit unit)
withTimeoutOf in interface WebElementFacadepublic WebElementFacade withTimeoutOf(Duration duration)
withTimeoutOf in interface WebElementFacadepublic boolean isVisible()
isVisible in interface WebElementStatepublic WebElementFacade and()
and in interface WebElementFacadepublic WebElementFacade then()
then in interface WebElementFacadepublic boolean isCurrentlyVisible()
isCurrentlyVisible in interface WebElementStatepublic boolean isCurrentlyEnabled()
isCurrentlyEnabled in interface WebElementStatepublic WebElementState shouldBeVisible()
shouldBeVisible in interface WebElementStatepublic WebElementState shouldBeCurrentlyVisible()
shouldBeCurrentlyVisible in interface WebElementStatepublic WebElementState shouldNotBeVisible()
shouldNotBeVisible in interface WebElementStatepublic WebElementState shouldNotBeCurrentlyVisible()
shouldNotBeCurrentlyVisible in interface WebElementStatepublic boolean hasFocus()
hasFocus in interface WebElementStatepublic boolean containsText(String value)
containsText in interface WebElementStatepublic boolean containsValue(String value)
WebElementStatecontainsValue in interface WebElementStatepublic boolean containsOnlyText(String value)
containsOnlyText in interface WebElementStatepublic boolean containsSelectOption(String value)
containsSelectOption in interface WebElementStatepublic List<String> getSelectOptions()
getSelectOptions in interface WebElementFacadegetSelectOptions in interface WebElementStatepublic String getFirstSelectedOptionVisibleText()
getFirstSelectedOptionVisibleText in interface WebElementFacadepublic List<String> getSelectedVisibleTexts()
getSelectedVisibleTexts in interface WebElementFacadegetSelectedVisibleTexts in interface WebElementStatepublic String getFirstSelectedOptionValue()
getFirstSelectedOptionValue in interface WebElementFacadepublic List<String> getSelectedValues()
getSelectedValues in interface WebElementFacadegetSelectedValues in interface WebElementStatepublic WebElementState shouldContainText(String textValue)
shouldContainText in interface WebElementStatetextValue - public WebElementState shouldContainOnlyText(String textValue)
shouldContainOnlyText in interface WebElementStatetextValue - public WebElementState shouldContainSelectedOption(String textValue)
shouldContainSelectedOption in interface WebElementStatepublic WebElementState shouldNotContainText(String textValue)
shouldNotContainText in interface WebElementStatetextValue - public WebElementState shouldBeEnabled()
shouldBeEnabled in interface WebElementStatepublic boolean isEnabled()
isEnabled in interface WebElementStateisEnabled in interface org.openqa.selenium.WebElementpublic WebElementState shouldNotBeEnabled()
shouldNotBeEnabled in interface WebElementStatepublic WebElementFacade type(CharSequence... keysToSend)
type in interface WebElementFacadekeysToSend - public WebElementFacade typeAndEnter(String value)
typeAndEnter in interface WebElementFacadevalue - public WebElementFacade typeAndTab(String value)
typeAndTab in interface WebElementFacadevalue - public void setWindowFocus()
setWindowFocus in interface WebElementFacadepublic FluentDropdownSelect select()
select in interface WebElementFacadepublic FluentDropdownDeselect deselect()
deselect in interface WebElementFacadepublic WebElementFacade deselectAll()
deselectAll in interface WebElementFacadepublic WebElementFacade deselectByVisibleText(String label)
deselectByVisibleText in interface WebElementFacadepublic WebElementFacade deselectByValue(String value)
deselectByValue in interface WebElementFacadepublic WebElementFacade deselectByIndex(int indexValue)
deselectByIndex in interface WebElementFacadepublic WebElementFacade selectByVisibleText(String label)
selectByVisibleText in interface WebElementFacadepublic String getSelectedVisibleTextValue()
getSelectedVisibleTextValue in interface WebElementStatepublic WebElementFacade selectByValue(String value)
selectByValue in interface WebElementFacadepublic String getSelectedValue()
getSelectedValue in interface WebElementStatepublic WebElementFacade selectByIndex(int indexValue)
selectByIndex in interface WebElementFacadepublic boolean isPresent()
isPresent in interface WebElementStatepublic WebElementState shouldBePresent()
shouldBePresent in interface WebElementStatepublic WebElementState shouldNotBePresent()
shouldNotBePresent in interface WebElementStatepublic WebElementState shouldBeSelected()
shouldBeSelected in interface WebElementStatepublic WebElementState shouldNotBeSelected()
shouldNotBeSelected in interface WebElementStatepublic WebElementFacade waitUntilVisible()
waitUntilVisible in interface WebElementFacadepublic WebElementFacade waitUntilPresent()
waitUntilPresent in interface WebElementFacadepublic org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
waitForCondition in interface WebElementFacadepublic WebElementFacade waitUntilNotVisible()
waitUntilNotVisible in interface WebElementFacadepublic String getValue()
getValue in interface WebElementFacadegetValue in interface WebElementStatepublic boolean isSelected()
isSelected in interface WebElementStateisSelected in interface org.openqa.selenium.WebElementpublic String getText()
getText in interface WebElementFacadegetText in interface WebElementStategetText in interface org.openqa.selenium.WebElementpublic String getTextContent()
getTextContent in interface WebElementFacadepublic boolean isDisabled()
isDisabled in interface WebElementFacadeisDisabled in interface WebElementStatepublic WebElementFacade waitUntilClickable()
waitUntilClickable in interface WebElementFacadepublic WebElementFacade waitUntilEnabled()
waitUntilEnabled in interface WebElementFacadepublic WebElementFacade waitUntilDisabled()
waitUntilDisabled in interface WebElementFacadepublic String getTextValue()
getTextValue in interface WebElementStatepublic WebElementState expect(String errorMessage)
expect in interface WebElementStatepublic boolean isClickable()
isClickable in interface WebElementStateprotected WebElementState expectingErrorMessage(String errorMessage)
public void click()
click in interface WebElementFacadeclick in interface org.openqa.selenium.WebElementpublic void click(ClickStrategy clickStrategy)
click in interface WebElementFacadepublic void doubleClick()
doubleClick in interface WebElementFacadepublic void contextClick()
contextClick in interface WebElementFacadepublic void clear()
clear in interface WebElementFacadeclear in interface org.openqa.selenium.WebElementpublic String toString()
toString in interface WebElementFacadetoString in class Objectpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementpublic boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Rectangle getRect()
getRect in interface org.openqa.selenium.WebElementpublic String getCssValue(String propertyName)
getCssValue in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement in interface org.openqa.selenium.WrapsElementpublic org.openqa.selenium.interactions.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.interactions.Locatablepublic void setImplicitTimeout(Duration implicitTimeout)
setImplicitTimeout in interface ConfigurableTimeoutspublic Duration getCurrentImplicitTimeout()
getCurrentImplicitTimeout in interface ConfigurableTimeoutspublic Duration resetTimeouts()
resetTimeouts in interface ConfigurableTimeoutspublic boolean containsElements(org.openqa.selenium.By selector)
containsElements in interface WebElementFacadepublic boolean containsElements(String xpathOrCssSelector)
containsElements in interface WebElementFacadepublic WebElementState shouldContainElements(org.openqa.selenium.By selector)
shouldContainElements in interface WebElementFacadepublic WebElementState shouldContainElements(String xpathOrCssSelector)
shouldContainElements in interface WebElementFacadepublic boolean hasClass(String cssClassName)
hasClass in interface WebElementFacadepublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionCopyright © 2022. All rights reserved.