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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <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)
FluentDropdownDeselect
deselect()
<T extends WebElementFacade>
TdeselectAll()
<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>
TfindBy(String xpathOrCssSelector)
<T extends WebElementFacade>
TfindBy(String xpathOrCssSelector, Object... arguments)
<T extends WebElementFacade>
TfindBy(org.openqa.selenium.By selector)
String
getAttribute(String name)
org.openqa.selenium.WebElement
getElement()
String
getFirstSelectedOptionValue()
String
getFirstSelectedOptionVisibleText()
long
getImplicitTimeoutInMilliseconds()
List<String>
getSelectedValues()
List<String>
getSelectedVisibleTexts()
List<String>
getSelectOptions()
String
getText()
String
getTextContent()
String
getValue()
boolean
hasClass(String cssClassName)
boolean
isDisabled()
FluentDropdownSelect
select()
<T extends WebElementFacade>
TselectByIndex(int indexValue)
<T extends WebElementFacade>
TselectByValue(String value)
<T extends WebElementFacade>
TselectByVisibleText(String label)
void
setWindowFocus()
void
shouldContainElements(String xpathOrCssSelector)
void
shouldContainElements(org.openqa.selenium.By selector)
<T extends WebElementFacade>
Tthen()
Convenience method to chain method calls more fluently.<T extends WebElementFacade>
Tthen(String xpathOrCssSelector)
<T extends WebElementFacade>
Tthen(String xpathOrCssSelector, Object... arguments)
<T extends WebElementFacade>
Tthen(org.openqa.selenium.By bySelector)
<T extends WebElementFacade>
TthenFind(String xpathOrCssSelector)
<T extends WebElementFacade>
TthenFind(String xpathOrCssSelector, Object... arguments)
ListOfWebElementFacades
thenFindAll(String xpathOrCssSelector)
ListOfWebElementFacades
thenFindAll(String xpathOrCssSelector, Object... arguments)
ListOfWebElementFacades
thenFindAll(org.openqa.selenium.By selector)
String
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>
waitForCondition()
<T extends WebElementFacade>
TwaitUntilClickable()
<T extends WebElementFacade>
TwaitUntilDisabled()
<T extends WebElementFacade>
TwaitUntilEnabled()
<T extends WebElementFacade>
TwaitUntilNotVisible()
<T extends WebElementFacade>
TwaitUntilPresent()
<T extends WebElementFacade>
TwaitUntilVisible()
<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.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
-
-
-
-
Method Detail
-
then
<T extends WebElementFacade> T then(String xpathOrCssSelector)
-
thenFind
<T extends WebElementFacade> T thenFind(String xpathOrCssSelector)
-
then
<T extends WebElementFacade> T then(String xpathOrCssSelector, Object... arguments)
-
thenFind
<T extends WebElementFacade> T thenFind(String xpathOrCssSelector, Object... arguments)
-
findBy
<T extends WebElementFacade> T findBy(String xpathOrCssSelector)
-
findBy
<T extends WebElementFacade> T findBy(String xpathOrCssSelector, Object... arguments)
-
thenFindAll
ListOfWebElementFacades thenFindAll(String xpathOrCssSelector)
-
thenFindAll
ListOfWebElementFacades thenFindAll(String xpathOrCssSelector, Object... arguments)
-
findBy
<T extends WebElementFacade> T findBy(org.openqa.selenium.By selector)
-
find
<T extends WebElementFacade> T find(org.openqa.selenium.By bySelector)
-
then
<T extends WebElementFacade> T then(org.openqa.selenium.By bySelector)
-
getAttribute
String getAttribute(String name)
- Specified by:
getAttribute
in interfaceorg.openqa.selenium.WebElement
-
thenFindAll
ListOfWebElementFacades thenFindAll(org.openqa.selenium.By selector)
-
getImplicitTimeoutInMilliseconds
long getImplicitTimeoutInMilliseconds()
-
withTimeoutOf
@Deprecated <T extends WebElementFacade> T withTimeoutOf(int timeout, TimeUnit unit)
Deprecated.
-
withTimeoutOf
<T extends WebElementFacade> T withTimeoutOf(int timeout, TemporalUnit unit)
-
withTimeoutOf
<T extends WebElementFacade> T withTimeoutOf(Duration duration)
-
and
<T extends WebElementFacade> T and()
Convenience method to chain method calls more fluently.
-
then
<T extends WebElementFacade> T then()
Convenience method to chain method calls more fluently.
-
getSelectOptions
List<String> getSelectOptions()
- Specified by:
getSelectOptions
in interfaceWebElementState
-
getFirstSelectedOptionVisibleText
String getFirstSelectedOptionVisibleText()
-
getFirstSelectedOptionValue
String getFirstSelectedOptionValue()
-
type
<T extends WebElementFacade> T type(CharSequence... keysToSend)
Type a value into a field, making sure that the field is empty first.- Parameters:
keysToSend
-
-
typeAndEnter
<T extends WebElementFacade> T typeAndEnter(String value)
Type a value into a field and then press Enter, making sure that the field is empty first.- Parameters:
value
-
-
typeAndTab
<T extends WebElementFacade> T typeAndTab(String value)
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
<T extends WebElementFacade> T deselectAll()
-
deselectByVisibleText
<T extends WebElementFacade> T deselectByVisibleText(String label)
-
deselectByValue
<T extends WebElementFacade> T deselectByValue(String value)
-
deselectByIndex
<T extends WebElementFacade> T deselectByIndex(int indexValue)
-
selectByVisibleText
<T extends WebElementFacade> T selectByVisibleText(String label)
-
selectByValue
<T extends WebElementFacade> T selectByValue(String value)
-
selectByIndex
<T extends WebElementFacade> T selectByIndex(int indexValue)
-
waitUntilVisible
<T extends WebElementFacade> T waitUntilVisible()
-
waitUntilPresent
<T extends WebElementFacade> T waitUntilPresent()
-
waitForCondition
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
-
waitUntilNotVisible
<T extends WebElementFacade> T 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
<T extends WebElementFacade> T waitUntilEnabled()
-
waitUntilClickable
<T extends WebElementFacade> T waitUntilClickable()
-
waitUntilDisabled
<T extends WebElementFacade> T 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
void click(ClickStrategy clickStrategy)
-
clear
void clear()
- Specified by:
clear
in interfaceorg.openqa.selenium.WebElement
-
containsElements
boolean containsElements(org.openqa.selenium.By selector)
-
containsElements
boolean containsElements(String xpathOrCssSelector)
-
shouldContainElements
void shouldContainElements(org.openqa.selenium.By selector)
-
shouldContainElements
void shouldContainElements(String xpathOrCssSelector)
-
hasClass
boolean hasClass(String cssClassName)
-
getElement
org.openqa.selenium.WebElement getElement()
-
-