Package net.serenitybdd.core.pages
Interface WebElementFacade
- All Superinterfaces:
ConfigurableTimeouts
,io.appium.java_client.FindsByAccessibilityId
,io.appium.java_client.FindsByAndroidUIAutomator
,io.appium.java_client.FindsByFluentSelector
,org.openqa.selenium.interactions.Locatable
,org.openqa.selenium.SearchContext
,org.openqa.selenium.TakesScreenshot
,org.openqa.selenium.WebElement
,WebElementState
,org.openqa.selenium.WrapsElement
- All Known Subinterfaces:
WebElementFacade
,WidgetObject
- All Known Implementing Classes:
WebElementFacadeImpl
,WebElementFacadeImpl
,WebElementFacadeStub
,WidgetObjectImpl
,WrappedWebElementFacadeImpl
public interface WebElementFacade
extends org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement, WebElementState, org.openqa.selenium.interactions.Locatable, ConfigurableTimeouts, io.appium.java_client.FindsByAccessibilityId, io.appium.java_client.FindsByAndroidUIAutomator
-
Method Summary
Modifier and TypeMethodDescription<T extends WebElementFacade>
Tand()
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
(String xpathOrCssSelector) boolean
containsElements
(org.openqa.selenium.By selector) deselect()
<T extends WebElementFacade>
T<T extends WebElementFacade>
TdeselectByIndex
(int indexValue) <T extends WebElementFacade>
TdeselectByValue
(String value) <T extends WebElementFacade>
TdeselectByVisibleText
(String label) <T extends WebElementFacade>
Tfind
(org.openqa.selenium.By bySelector) <T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
TfindBy
(org.openqa.selenium.By selector) getAttribute
(String name) org.openqa.selenium.WebElement
long
getText()
getValue()
boolean
boolean
select()
<T extends WebElementFacade>
TselectByIndex
(int indexValue) <T extends WebElementFacade>
TselectByValue
(String value) <T extends WebElementFacade>
TselectByVisibleText
(String label) void
shouldContainElements
(String xpathOrCssSelector) shouldContainElements
(org.openqa.selenium.By selector) <T extends WebElementFacade>
Tthen()
Convenience method to chain method calls more fluently.<T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
Tthen
(org.openqa.selenium.By bySelector) <T extends WebElementFacade>
T<T extends WebElementFacade>
TthenFindAll
(String xpathOrCssSelector) thenFindAll
(String xpathOrCssSelector, Object... arguments) thenFindAll
(org.openqa.selenium.By... selector) toString()
<T extends WebElementFacade>
Ttype
(CharSequence... keysToSend) Type a value into a field, making sure that the field is empty first.<T extends WebElementFacade>
TtypeAndEnter
(String value) Type a value into a field and then press Enter, making sure that the field is empty first.<T extends WebElementFacade>
TtypeAndTab
(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>
<T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
T<T extends WebElementFacade>
TwithTimeoutOf
(int timeout, TemporalUnit unit) <T extends WebElementFacade>
TwithTimeoutOf
(int timeout, TimeUnit unit) Deprecated.<T extends WebElementFacade>
TwithTimeoutOf
(Duration duration) Methods inherited from interface net.thucydides.core.webdriver.ConfigurableTimeouts
getCurrentImplicitTimeout, resetTimeouts, setImplicitTimeout
Methods inherited from interface io.appium.java_client.FindsByAccessibilityId
findElementByAccessibilityId, findElementsByAccessibilityId
Methods inherited from interface io.appium.java_client.FindsByAndroidUIAutomator
findElementByAndroidUIAutomator, findElementsByAndroidUIAutomator
Methods inherited from interface io.appium.java_client.FindsByFluentSelector
findElement, findElements
Methods inherited from interface org.openqa.selenium.interactions.Locatable
getCoordinates
Methods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAs
Methods inherited from interface org.openqa.selenium.WebElement
findElement, findElements, getCssValue, getLocation, getRect, getSize, getTagName, isDisplayed, isEnabled, isSelected, sendKeys, submit
Methods inherited from interface net.serenitybdd.core.pages.WebElementState
containsOnlyText, containsSelectOption, containsText, containsValue, expect, getSelectedValue, getSelectedVisibleTextValue, getTextValue, hasFocus, isClickable, isCurrentlyEnabled, isCurrentlyVisible, isEnabled, isPresent, isSelected, isVisible, shouldBeCurrentlyVisible, shouldBeEnabled, shouldBePresent, shouldBeVisible, shouldContainOnlyText, shouldContainSelectedOption, shouldContainText, shouldNotBeCurrentlyVisible, shouldNotBeEnabled, shouldNotBePresent, shouldNotBeVisible, shouldNotContainText
Methods inherited from interface org.openqa.selenium.WrapsElement
getWrappedElement
-
Method Details
-
then
-
thenFind
-
then
-
thenFind
-
findBy
-
findBy
-
thenFindAll
-
thenFindAll
-
findBy
-
find
-
then
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.openqa.selenium.WebElement
- Specified by:
getAttribute
in interfaceWebElementState
-
thenFindAll
-
getImplicitTimeoutInMilliseconds
long getImplicitTimeoutInMilliseconds() -
withTimeoutOf
Deprecated. -
withTimeoutOf
-
withTimeoutOf
-
and
Convenience method to chain method calls more fluently. -
then
Convenience method to chain method calls more fluently. -
getSelectOptions
- Specified by:
getSelectOptions
in interfaceWebElementState
-
getFirstSelectedOptionVisibleText
String getFirstSelectedOptionVisibleText() -
getSelectedVisibleTexts
- Specified by:
getSelectedVisibleTexts
in interfaceWebElementState
-
getFirstSelectedOptionValue
String getFirstSelectedOptionValue() -
getSelectedValues
- Specified by:
getSelectedValues
in interfaceWebElementState
-
type
Type a value into a field, making sure that the field is empty first.- Parameters:
keysToSend
-
-
typeAndEnter
Type a value into a field and then press Enter, making sure that the field is empty first.- Parameters:
value
-
-
typeAndTab
Type a value into a field and then press TAB, making sure that the field is empty first. This currently is not supported by all browsers, notably Firefox.- Parameters:
value
-
-
setWindowFocus
void setWindowFocus() -
select
FluentDropdownSelect select() -
deselect
FluentDropdownDeselect deselect() -
deselectAll
-
deselectByVisibleText
-
deselectByValue
-
deselectByIndex
-
selectByVisibleText
-
selectByValue
-
selectByIndex
-
waitUntilVisible
-
waitUntilPresent
-
waitForCondition
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition() -
waitUntilNotVisible
-
getValue
String getValue()- Specified by:
getValue
in interfaceWebElementState
-
getText
String getText()- Specified by:
getText
in interfaceorg.openqa.selenium.WebElement
- Specified by:
getText
in interfaceWebElementState
-
getTextContent
String getTextContent() -
isDisabled
boolean isDisabled()- Specified by:
isDisabled
in interfaceWebElementState
-
waitUntilEnabled
-
waitUntilClickable
-
waitUntilDisabled
-
click
void click()Wait for an element to be visible and enabled, and then click on it.- Specified by:
click
in interfaceorg.openqa.selenium.WebElement
-
click
-
clear
void clear()- Specified by:
clear
in interfaceorg.openqa.selenium.WebElement
-
toString
String toString() -
containsElements
boolean containsElements(org.openqa.selenium.By selector) -
containsElements
-
shouldContainElements
-
shouldContainElements
-
hasClass
-
getElement
org.openqa.selenium.WebElement getElement()
-