public class WebElementFacadeStub extends java.lang.Object implements WebElementFacade
| 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.
|
boolean |
containsElements(org.openqa.selenium.By selector) |
boolean |
containsElements(java.lang.String xpathOrCssSelector) |
boolean |
containsOnlyText(java.lang.String value)
Does this element exactly match given text?
|
boolean |
containsSelectOption(java.lang.String value)
Does this dropdown contain the specified value.
|
boolean |
containsText(java.lang.String value)
Does this element contain a given text?
|
boolean |
containsValue(java.lang.String value)
Does this element contain a given value attribute?
|
FluentDropdownDeselect |
deselect() |
WebElementFacade |
deselectAll() |
WebElementFacade |
deselectByIndex(int indexValue) |
WebElementFacade |
deselectByValue(java.lang.String value) |
WebElementFacade |
deselectByVisibleText(java.lang.String label) |
WebElementState |
expect(java.lang.String errorMessage) |
WebElementFacade |
find(org.openqa.selenium.By bySelector) |
WebElementFacade |
findBy(org.openqa.selenium.By selector) |
WebElementFacade |
findBy(java.lang.String xpathOrCssSelector) |
WebElementFacade |
findBy(java.lang.String xpathOrCssSelector,
java.lang.Object... arguments) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
findElement(java.lang.String by,
java.lang.String using) |
org.openqa.selenium.WebElement |
findElementByAccessibilityId(java.lang.String using) |
org.openqa.selenium.WebElement |
findElementByAndroidUIAutomator(java.lang.String using) |
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
java.util.List |
findElements(java.lang.String by,
java.lang.String using) |
java.util.List<org.openqa.selenium.WebElement> |
findElementsByAccessibilityId(java.lang.String using) |
java.util.List<org.openqa.selenium.WebElement> |
findElementsByAndroidUIAutomator(java.lang.String using) |
java.lang.String |
getAttribute(java.lang.String name) |
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates() |
java.lang.String |
getCssValue(java.lang.String propertyName) |
java.time.Duration |
getCurrentImplicitTimeout() |
long |
getImplicitTimeoutInMilliseconds() |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
java.lang.String |
getSelectedValue() |
java.lang.String |
getSelectedVisibleTextValue() |
java.util.List<java.lang.String> |
getSelectOptions() |
org.openqa.selenium.Dimension |
getSize() |
java.lang.String |
getTagName() |
java.lang.String |
getText() |
java.lang.String |
getTextContent() |
java.lang.String |
getTextValue() |
java.lang.String |
getValue() |
org.openqa.selenium.WebElement |
getWrappedElement() |
boolean |
hasClass(java.lang.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.
|
java.time.Duration |
resetTimeouts() |
FluentDropdownSelect |
select() |
WebElementFacade |
selectByIndex(int indexValue) |
WebElementFacade |
selectByValue(java.lang.String value) |
WebElementFacade |
selectByVisibleText(java.lang.String label) |
void |
sendKeys(java.lang.CharSequence... keysToSend) |
void |
setImplicitTimeout(java.time.Duration implicitTimeout) |
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 |
shouldContainElements(org.openqa.selenium.By selector) |
void |
shouldContainElements(java.lang.String xpathOrCssSelector) |
void |
shouldContainOnlyText(java.lang.String textValue)
Check that an element exactly matches a text value
|
void |
shouldContainSelectedOption(java.lang.String textValue) |
void |
shouldContainText(java.lang.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(java.lang.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(java.lang.String xpathOrCssSelector) |
WebElementFacade |
then(java.lang.String xpathOrCssSelector,
java.lang.Object... arguments) |
WebElementFacade |
thenFind(java.lang.String xpathOrCssSelector) |
WebElementFacade |
thenFind(java.lang.String xpathOrCssSelector,
java.lang.Object... arguments) |
java.util.List<WebElementFacade> |
thenFindAll(org.openqa.selenium.By selector) |
java.util.List<WebElementFacade> |
thenFindAll(java.lang.String xpathOrCssSelector) |
java.util.List<WebElementFacade> |
thenFindAll(java.lang.String xpathOrCssSelector,
java.lang.Object... arguments) |
java.lang.String |
toString() |
WebElementFacade |
type(java.lang.CharSequence... keysToSend)
Type a value into a field, making sure that the field is empty first.
|
WebElementFacade |
typeAndEnter(java.lang.String value)
Type a value into a field and then press Enter, making sure that the field is empty first.
|
WebElementFacade |
typeAndTab(java.lang.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(java.time.Duration duration) |
WebElementFacade |
withTimeoutOf(int timeout,
java.time.temporal.TemporalUnit unit) |
WebElementFacade |
withTimeoutOf(int timeout,
java.util.concurrent.TimeUnit unit) |
public WebElementFacade then(java.lang.String xpathOrCssSelector)
then in interface WebElementFacadepublic WebElementFacade thenFind(java.lang.String xpathOrCssSelector)
thenFind in interface WebElementFacadepublic WebElementFacade thenFind(java.lang.String xpathOrCssSelector, java.lang.Object... arguments)
thenFind in interface WebElementFacadepublic WebElementFacade then(java.lang.String xpathOrCssSelector, java.lang.Object... arguments)
then in interface WebElementFacadepublic WebElementFacade findBy(java.lang.String xpathOrCssSelector)
findBy in interface WebElementFacadepublic WebElementFacade findBy(java.lang.String xpathOrCssSelector, java.lang.Object... arguments)
findBy in interface WebElementFacadepublic java.util.List<WebElementFacade> thenFindAll(java.lang.String xpathOrCssSelector)
thenFindAll in interface WebElementFacadepublic java.util.List<WebElementFacade> thenFindAll(java.lang.String xpathOrCssSelector, java.lang.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 java.lang.String getAttribute(java.lang.String name)
getAttribute in interface WebElementFacadegetAttribute in interface org.openqa.selenium.WebElementpublic java.util.List<WebElementFacade> thenFindAll(org.openqa.selenium.By selector)
thenFindAll in interface WebElementFacadepublic long getImplicitTimeoutInMilliseconds()
getImplicitTimeoutInMilliseconds in interface WebElementFacadepublic WebElementFacade withTimeoutOf(int timeout, java.util.concurrent.TimeUnit unit)
withTimeoutOf in interface WebElementFacadepublic WebElementFacade withTimeoutOf(int timeout, java.time.temporal.TemporalUnit unit)
withTimeoutOf in interface WebElementFacadepublic WebElementFacade withTimeoutOf(java.time.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 void shouldBeVisible()
shouldBeVisible in interface WebElementStatepublic void shouldBeCurrentlyVisible()
shouldBeCurrentlyVisible in interface WebElementStatepublic void shouldNotBeVisible()
shouldNotBeVisible in interface WebElementStatepublic void shouldNotBeCurrentlyVisible()
shouldNotBeCurrentlyVisible in interface WebElementStatepublic boolean hasFocus()
hasFocus in interface WebElementStatepublic boolean containsText(java.lang.String value)
containsText in interface WebElementStatepublic boolean containsValue(java.lang.String value)
WebElementStatecontainsValue in interface WebElementStatepublic boolean containsOnlyText(java.lang.String value)
containsOnlyText in interface WebElementStatepublic boolean containsSelectOption(java.lang.String value)
containsSelectOption in interface WebElementStatepublic java.util.List<java.lang.String> getSelectOptions()
getSelectOptions in interface WebElementFacadegetSelectOptions in interface WebElementStatepublic void shouldContainText(java.lang.String textValue)
shouldContainText in interface WebElementStatetextValue - public void shouldContainOnlyText(java.lang.String textValue)
shouldContainOnlyText in interface WebElementStatetextValue - public void shouldContainSelectedOption(java.lang.String textValue)
shouldContainSelectedOption in interface WebElementStatepublic void shouldNotContainText(java.lang.String textValue)
shouldNotContainText in interface WebElementStatetextValue - public void shouldBeEnabled()
shouldBeEnabled in interface WebElementStatepublic boolean isEnabled()
isEnabled in interface WebElementStateisEnabled in interface org.openqa.selenium.WebElementpublic void shouldNotBeEnabled()
shouldNotBeEnabled in interface WebElementStatepublic WebElementFacade type(java.lang.CharSequence... keysToSend)
type in interface WebElementFacadekeysToSend - public WebElementFacade typeAndEnter(java.lang.String value)
typeAndEnter in interface WebElementFacadevalue - public WebElementFacade typeAndTab(java.lang.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(java.lang.String label)
deselectByVisibleText in interface WebElementFacadepublic WebElementFacade deselectByValue(java.lang.String value)
deselectByValue in interface WebElementFacadepublic WebElementFacade deselectByIndex(int indexValue)
deselectByIndex in interface WebElementFacadepublic WebElementFacade selectByVisibleText(java.lang.String label)
selectByVisibleText in interface WebElementFacadepublic java.lang.String getSelectedVisibleTextValue()
getSelectedVisibleTextValue in interface WebElementStatepublic WebElementFacade selectByValue(java.lang.String value)
selectByValue in interface WebElementFacadepublic java.lang.String getSelectedValue()
getSelectedValue in interface WebElementStatepublic WebElementFacade selectByIndex(int indexValue)
selectByIndex in interface WebElementFacadepublic boolean isPresent()
isPresent in interface WebElementStatepublic void shouldBePresent()
shouldBePresent in interface WebElementStatepublic void shouldNotBePresent()
shouldNotBePresent 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 java.lang.String getValue()
getValue in interface WebElementFacadegetValue in interface WebElementStatepublic boolean isSelected()
isSelected in interface WebElementStateisSelected in interface org.openqa.selenium.WebElementpublic java.lang.String getText()
getText in interface WebElementFacadegetText in interface WebElementStategetText in interface org.openqa.selenium.WebElementpublic java.lang.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 java.lang.String getTextValue()
getTextValue in interface WebElementStatepublic WebElementState expect(java.lang.String errorMessage)
expect in interface WebElementStatepublic boolean isClickable()
isClickable in interface WebElementStatepublic void click()
click in interface WebElementFacadeclick in interface org.openqa.selenium.WebElementpublic void clear()
clear in interface WebElementFacadeclear in interface org.openqa.selenium.WebElementpublic java.lang.String toString()
toString in interface WebElementFacadetoString in class java.lang.Objectpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void sendKeys(java.lang.CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementpublic java.lang.String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic java.util.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 org.openqa.selenium.WebElement findElement(java.lang.String by,
java.lang.String using)
findElement in interface io.appium.java_client.FindsByFluentSelectorpublic java.util.List findElements(java.lang.String by,
java.lang.String using)
findElements in interface io.appium.java_client.FindsByFluentSelectorpublic 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 java.lang.String getCssValue(java.lang.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.internal.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.interactions.Locatablepublic org.openqa.selenium.WebElement findElementByAccessibilityId(java.lang.String using)
findElementByAccessibilityId in interface io.appium.java_client.FindsByAccessibilityIdpublic java.util.List<org.openqa.selenium.WebElement> findElementsByAccessibilityId(java.lang.String using)
findElementsByAccessibilityId in interface io.appium.java_client.FindsByAccessibilityIdpublic org.openqa.selenium.WebElement findElementByAndroidUIAutomator(java.lang.String using)
findElementByAndroidUIAutomator in interface io.appium.java_client.FindsByAndroidUIAutomatorpublic java.util.List<org.openqa.selenium.WebElement> findElementsByAndroidUIAutomator(java.lang.String using)
findElementsByAndroidUIAutomator in interface io.appium.java_client.FindsByAndroidUIAutomatorpublic void setImplicitTimeout(java.time.Duration implicitTimeout)
setImplicitTimeout in interface ConfigurableTimeoutspublic java.time.Duration getCurrentImplicitTimeout()
getCurrentImplicitTimeout in interface ConfigurableTimeoutspublic java.time.Duration resetTimeouts()
resetTimeouts in interface ConfigurableTimeoutspublic boolean containsElements(org.openqa.selenium.By selector)
containsElements in interface WebElementFacadepublic boolean containsElements(java.lang.String xpathOrCssSelector)
containsElements in interface WebElementFacadepublic void shouldContainElements(org.openqa.selenium.By selector)
shouldContainElements in interface WebElementFacadepublic void shouldContainElements(java.lang.String xpathOrCssSelector)
shouldContainElements in interface WebElementFacadepublic boolean hasClass(java.lang.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.WebDriverException