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.voidclear()voidclick()Wait for an element to be visible and enabled, and then click on it.voidclick(ClickStrategy clickStrategy) booleancontainsElements(String xpathOrCssSelector) booleancontainsElements(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.WebElementlonggetText()getValue()booleanbooleanselect()<T extends WebElementFacade>
TselectByIndex(int indexValue) <T extends WebElementFacade>
TselectByValue(String value) <T extends WebElementFacade>
TselectByVisibleText(String label) voidshouldContainElements(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, setImplicitTimeoutMethods inherited from interface io.appium.java_client.FindsByAccessibilityId
findElementByAccessibilityId, findElementsByAccessibilityIdMethods inherited from interface io.appium.java_client.FindsByAndroidUIAutomator
findElementByAndroidUIAutomator, findElementsByAndroidUIAutomatorMethods inherited from interface io.appium.java_client.FindsByFluentSelector
findElement, findElementsMethods inherited from interface org.openqa.selenium.interactions.Locatable
getCoordinatesMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
findElement, findElements, getCssValue, getLocation, getRect, getSize, getTagName, isDisplayed, isEnabled, isSelected, sendKeys, submitMethods 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, shouldNotContainTextMethods inherited from interface org.openqa.selenium.WrapsElement
getWrappedElement
-
Method Details
-
then
-
thenFind
-
then
-
thenFind
-
findBy
-
findBy
-
thenFindAll
-
thenFindAll
-
findBy
-
find
-
then
-
getAttribute
- Specified by:
getAttributein interfaceorg.openqa.selenium.WebElement- Specified by:
getAttributein 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:
getSelectOptionsin interfaceWebElementState
-
getFirstSelectedOptionVisibleText
String getFirstSelectedOptionVisibleText() -
getSelectedVisibleTexts
- Specified by:
getSelectedVisibleTextsin interfaceWebElementState
-
getFirstSelectedOptionValue
String getFirstSelectedOptionValue() -
getSelectedValues
- Specified by:
getSelectedValuesin 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:
getValuein interfaceWebElementState
-
getText
String getText()- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement- Specified by:
getTextin interfaceWebElementState
-
getTextContent
String getTextContent() -
isDisabled
boolean isDisabled()- Specified by:
isDisabledin interfaceWebElementState
-
waitUntilEnabled
-
waitUntilClickable
-
waitUntilDisabled
-
click
void click()Wait for an element to be visible and enabled, and then click on it.- Specified by:
clickin interfaceorg.openqa.selenium.WebElement
-
click
-
clear
void clear()- Specified by:
clearin 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()
-