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?
|
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) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
findElementByAccessibilityId(java.lang.String using) |
org.openqa.selenium.WebElement |
findElementByAndroidUIAutomator(java.lang.String using) |
org.openqa.selenium.WebElement |
findElementByIosUIAutomation(java.lang.String using) |
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
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.util.List<org.openqa.selenium.WebElement> |
findElementsByIosUIAutomation(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) |
org.openqa.selenium.support.ui.Duration |
getCurrentImplicitTimeout() |
long |
getImplicitTimeoutInMilliseconds() |
org.openqa.selenium.Point |
getLocation() |
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 |
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 |
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 |
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.
|
void |
resetTimeouts() |
WebElementFacade |
selectByIndex(int indexValue) |
WebElementFacade |
selectByValue(java.lang.String value) |
WebElementFacade |
selectByVisibleText(java.lang.String label) |
void |
sendKeys(java.lang.CharSequence... keysToSend) |
void |
setImplicitTimeout(org.openqa.selenium.support.ui.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) |
java.util.List<WebElementFacade> |
thenFindAll(org.openqa.selenium.By selector) |
java.util.List<WebElementFacade> |
thenFindAll(java.lang.String xpathOrCssSelector) |
java.lang.String |
toString() |
WebElementFacade |
type(java.lang.String value)
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() |
<T extends WebElementFacade> |
waitUntilClickable() |
WebElementFacade |
waitUntilDisabled() |
WebElementFacade |
waitUntilEnabled() |
WebElementFacade |
waitUntilNotVisible() |
WebElementFacade |
waitUntilPresent() |
WebElementFacade |
waitUntilVisible() |
WebElementFacade |
withTimeoutOf(int timeout,
java.util.concurrent.TimeUnit unit) |
public WebElementFacade then(java.lang.String xpathOrCssSelector)
then
in interface WebElementFacade
public WebElementFacade findBy(java.lang.String xpathOrCssSelector)
findBy
in interface WebElementFacade
public java.util.List<WebElementFacade> thenFindAll(java.lang.String xpathOrCssSelector)
thenFindAll
in interface WebElementFacade
public WebElementFacade findBy(org.openqa.selenium.By selector)
findBy
in interface WebElementFacade
public WebElementFacade find(org.openqa.selenium.By bySelector)
find
in interface WebElementFacade
public WebElementFacade then(org.openqa.selenium.By bySelector)
then
in interface WebElementFacade
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface WebElementFacade
getAttribute
in interface org.openqa.selenium.WebElement
public java.util.List<WebElementFacade> thenFindAll(org.openqa.selenium.By selector)
thenFindAll
in interface WebElementFacade
public long getImplicitTimeoutInMilliseconds()
getImplicitTimeoutInMilliseconds
in interface WebElementFacade
public WebElementFacade withTimeoutOf(int timeout, java.util.concurrent.TimeUnit unit)
withTimeoutOf
in interface WebElementFacade
public boolean isVisible()
isVisible
in interface WebElementState
public WebElementFacade and()
and
in interface WebElementFacade
public WebElementFacade then()
then
in interface WebElementFacade
public boolean isCurrentlyVisible()
isCurrentlyVisible
in interface WebElementState
public boolean isCurrentlyEnabled()
isCurrentlyEnabled
in interface WebElementState
public void shouldBeVisible()
shouldBeVisible
in interface WebElementState
public void shouldBeCurrentlyVisible()
shouldBeCurrentlyVisible
in interface WebElementState
public void shouldNotBeVisible()
shouldNotBeVisible
in interface WebElementState
public void shouldNotBeCurrentlyVisible()
shouldNotBeCurrentlyVisible
in interface WebElementState
public boolean hasFocus()
hasFocus
in interface WebElementState
public boolean containsText(java.lang.String value)
containsText
in interface WebElementState
public boolean containsOnlyText(java.lang.String value)
containsOnlyText
in interface WebElementState
public boolean containsSelectOption(java.lang.String value)
containsSelectOption
in interface WebElementState
public java.util.List<java.lang.String> getSelectOptions()
getSelectOptions
in interface WebElementFacade
public void shouldContainText(java.lang.String textValue)
shouldContainText
in interface WebElementState
textValue
- public void shouldContainOnlyText(java.lang.String textValue)
shouldContainOnlyText
in interface WebElementState
textValue
- public void shouldContainSelectedOption(java.lang.String textValue)
shouldContainSelectedOption
in interface WebElementState
public void shouldNotContainText(java.lang.String textValue)
shouldNotContainText
in interface WebElementState
textValue
- public void shouldBeEnabled()
shouldBeEnabled
in interface WebElementState
public boolean isEnabled()
isEnabled
in interface WebElementState
isEnabled
in interface org.openqa.selenium.WebElement
public void shouldNotBeEnabled()
shouldNotBeEnabled
in interface WebElementState
public WebElementFacade type(java.lang.String value)
type
in interface WebElementFacade
value
- public WebElementFacade typeAndEnter(java.lang.String value)
typeAndEnter
in interface WebElementFacade
value
- public WebElementFacade typeAndTab(java.lang.String value)
typeAndTab
in interface WebElementFacade
value
- public void setWindowFocus()
setWindowFocus
in interface WebElementFacade
public WebElementFacade selectByVisibleText(java.lang.String label)
selectByVisibleText
in interface WebElementFacade
public java.lang.String getSelectedVisibleTextValue()
getSelectedVisibleTextValue
in interface WebElementState
public WebElementFacade selectByValue(java.lang.String value)
selectByValue
in interface WebElementFacade
public java.lang.String getSelectedValue()
getSelectedValue
in interface WebElementState
public WebElementFacade selectByIndex(int indexValue)
selectByIndex
in interface WebElementFacade
public boolean isPresent()
isPresent
in interface WebElementState
public void shouldBePresent()
shouldBePresent
in interface WebElementState
public void shouldNotBePresent()
shouldNotBePresent
in interface WebElementState
public WebElementFacade waitUntilVisible()
waitUntilVisible
in interface WebElementFacade
public WebElementFacade waitUntilPresent()
waitUntilPresent
in interface WebElementFacade
public org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
waitForCondition
in interface WebElementFacade
public WebElementFacade waitUntilNotVisible()
waitUntilNotVisible
in interface WebElementFacade
public java.lang.String getValue()
getValue
in interface WebElementFacade
public boolean isSelected()
isSelected
in interface WebElementState
isSelected
in interface org.openqa.selenium.WebElement
public java.lang.String getText()
getText
in interface WebElementFacade
getText
in interface org.openqa.selenium.WebElement
public <T extends WebElementFacade> T waitUntilClickable()
waitUntilClickable
in interface WebElementFacade
public WebElementFacade waitUntilEnabled()
waitUntilEnabled
in interface WebElementFacade
public WebElementFacade waitUntilDisabled()
waitUntilDisabled
in interface WebElementFacade
public java.lang.String getTextValue()
getTextValue
in interface WebElementState
public WebElementState expect(java.lang.String errorMessage)
expect
in interface WebElementState
public void click()
click
in interface WebElementFacade
click
in interface org.openqa.selenium.WebElement
public void clear()
clear
in interface WebElementFacade
clear
in interface org.openqa.selenium.WebElement
public java.lang.String toString()
toString
in interface WebElementFacade
toString
in class java.lang.Object
public void submit()
submit
in interface org.openqa.selenium.WebElement
public void sendKeys(java.lang.CharSequence... keysToSend)
sendKeys
in interface org.openqa.selenium.WebElement
public java.lang.String getTagName()
getTagName
in interface org.openqa.selenium.WebElement
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement
in interface org.openqa.selenium.SearchContext
findElement
in interface org.openqa.selenium.WebElement
public boolean isDisplayed()
isDisplayed
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Point getLocation()
getLocation
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Dimension getSize()
getSize
in interface org.openqa.selenium.WebElement
public java.lang.String getCssValue(java.lang.String propertyName)
getCssValue
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement
in interface org.openqa.selenium.internal.WrapsElement
public org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates
in interface org.openqa.selenium.internal.Locatable
public org.openqa.selenium.WebElement findElementByAccessibilityId(java.lang.String using)
findElementByAccessibilityId
in interface io.appium.java_client.FindsByAccessibilityId
public java.util.List<org.openqa.selenium.WebElement> findElementsByAccessibilityId(java.lang.String using)
findElementsByAccessibilityId
in interface io.appium.java_client.FindsByAccessibilityId
public org.openqa.selenium.WebElement findElementByAndroidUIAutomator(java.lang.String using)
findElementByAndroidUIAutomator
in interface io.appium.java_client.FindsByAndroidUIAutomator
public java.util.List<org.openqa.selenium.WebElement> findElementsByAndroidUIAutomator(java.lang.String using)
findElementsByAndroidUIAutomator
in interface io.appium.java_client.FindsByAndroidUIAutomator
public org.openqa.selenium.WebElement findElementByIosUIAutomation(java.lang.String using)
findElementByIosUIAutomation
in interface io.appium.java_client.FindsByIosUIAutomation
public java.util.List<org.openqa.selenium.WebElement> findElementsByIosUIAutomation(java.lang.String using)
findElementsByIosUIAutomation
in interface io.appium.java_client.FindsByIosUIAutomation
public void setImplicitTimeout(org.openqa.selenium.support.ui.Duration implicitTimeout)
setImplicitTimeout
in interface ConfigurableTimeouts
public org.openqa.selenium.support.ui.Duration getCurrentImplicitTimeout()
getCurrentImplicitTimeout
in interface ConfigurableTimeouts
public void resetTimeouts()
resetTimeouts
in interface ConfigurableTimeouts
public boolean containsElements(org.openqa.selenium.By selector)
containsElements
in interface WebElementFacade
public boolean containsElements(java.lang.String xpathOrCssSelector)
containsElements
in interface WebElementFacade
public void shouldContainElements(org.openqa.selenium.By selector)
shouldContainElements
in interface WebElementFacade
public void shouldContainElements(java.lang.String xpathOrCssSelector)
shouldContainElements
in interface WebElementFacade
public boolean hasClass(java.lang.String cssClassName)
hasClass
in interface WebElementFacade