public interface WebElementFacade extends org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement, WebElementState, org.openqa.selenium.interactions.Locatable, ConfigurableTimeouts
| Modifier and Type | Method and Description |
|---|---|
<T extends 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.
|
void |
click(ClickStrategy clickStrategy) |
boolean |
containsElements(org.openqa.selenium.By selector) |
boolean |
containsElements(String xpathOrCssSelector) |
void |
contextClick() |
FluentDropdownDeselect |
deselect() |
<T extends WebElementFacade> |
deselectAll() |
<T extends WebElementFacade> |
deselectByIndex(int indexValue) |
<T extends WebElementFacade> |
deselectByValue(String value) |
<T extends WebElementFacade> |
deselectByVisibleText(String label) |
void |
doubleClick() |
<T extends WebElementFacade> |
find(org.openqa.selenium.By bySelector) |
<T extends WebElementFacade> |
findBy(org.openqa.selenium.By selector) |
<T extends WebElementFacade> |
findBy(String xpathOrCssSelector) |
<T extends WebElementFacade> |
findBy(String xpathOrCssSelector,
Object... arguments) |
ListOfWebElementFacades |
findNestedElementsMatching(ResolvableElement nestedElement) |
String |
getAttribute(String name) |
org.openqa.selenium.WebElement |
getElement() |
String |
getFirstSelectedOptionValue() |
String |
getFirstSelectedOptionVisibleText() |
long |
getImplicitTimeoutInMilliseconds() |
List<String> |
getSelectedValues() |
List<String> |
getSelectedVisibleTexts() |
List<String> |
getSelectOptions() |
List<String> |
getSelectOptionValues() |
String |
getText() |
String |
getTextContent() |
String |
getValue() |
boolean |
hasClass(String cssClassName) |
boolean |
isDisabled() |
FluentDropdownSelect |
select() |
<T extends WebElementFacade> |
selectByIndex(int indexValue) |
<T extends WebElementFacade> |
selectByValue(String value) |
<T extends WebElementFacade> |
selectByVisibleText(String label) |
void |
setWindowFocus() |
WebElementState |
shouldContainElements(org.openqa.selenium.By selector) |
WebElementState |
shouldContainElements(String xpathOrCssSelector) |
<T extends WebElementFacade> |
then()
Convenience method to chain method calls more fluently.
|
<T extends WebElementFacade> |
then(org.openqa.selenium.By bySelector) |
<T extends WebElementFacade> |
then(String xpathOrCssSelector) |
<T extends WebElementFacade> |
then(String xpathOrCssSelector,
Object... arguments) |
<T extends WebElementFacade> |
thenFind(String xpathOrCssSelector) |
<T extends WebElementFacade> |
thenFind(String xpathOrCssSelector,
Object... arguments) |
ListOfWebElementFacades |
thenFindAll(org.openqa.selenium.By... selector) |
ListOfWebElementFacades |
thenFindAll(String xpathOrCssSelector) |
ListOfWebElementFacades |
thenFindAll(String xpathOrCssSelector,
Object... arguments) |
String |
toString() |
<T extends WebElementFacade> |
type(CharSequence... keysToSend)
Type a value into a field, making sure that the field is empty first.
|
<T extends WebElementFacade> |
typeAndEnter(String value)
Type a value into a field and then press Enter, making sure that the field is empty first.
|
<T extends WebElementFacade> |
typeAndTab(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() |
<T extends WebElementFacade> |
waitUntilDisabled() |
<T extends WebElementFacade> |
waitUntilEnabled() |
<T extends WebElementFacade> |
waitUntilNotVisible() |
<T extends WebElementFacade> |
waitUntilPresent() |
<T extends WebElementFacade> |
waitUntilVisible() |
<T extends WebElementFacade> |
withTimeoutOf(Duration duration) |
<T extends WebElementFacade> |
withTimeoutOf(int timeout,
TemporalUnit unit) |
<T extends WebElementFacade> |
withTimeoutOf(int timeout,
TimeUnit unit)
Deprecated.
|
findElement, findElements, getAccessibleName, getAriaRole, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, isDisplayed, isEnabled, isSelected, sendKeys, submitcontainsOnlyText, containsSelectOption, containsText, containsValue, expect, getSelectedValue, getSelectedVisibleTextValue, getTextValue, hasFocus, isClickable, isCurrentlyEnabled, isCurrentlyVisible, isEnabled, isPresent, isSelected, isVisible, shouldBeCurrentlyVisible, shouldBeEnabled, shouldBePresent, shouldBeSelected, shouldBeVisible, shouldContainOnlyText, shouldContainSelectedOption, shouldContainText, shouldNotBeCurrentlyVisible, shouldNotBeEnabled, shouldNotBePresent, shouldNotBeSelected, shouldNotBeVisible, shouldNotContainTextgetCurrentImplicitTimeout, resetTimeouts, setImplicitTimeout<T extends WebElementFacade> T then(String xpathOrCssSelector)
<T extends WebElementFacade> T thenFind(String xpathOrCssSelector)
<T extends WebElementFacade> T then(String xpathOrCssSelector, Object... arguments)
<T extends WebElementFacade> T thenFind(String xpathOrCssSelector, Object... arguments)
<T extends WebElementFacade> T findBy(String xpathOrCssSelector)
<T extends WebElementFacade> T findBy(String xpathOrCssSelector, Object... arguments)
ListOfWebElementFacades thenFindAll(String xpathOrCssSelector)
ListOfWebElementFacades thenFindAll(String xpathOrCssSelector, Object... arguments)
<T extends WebElementFacade> T findBy(org.openqa.selenium.By selector)
<T extends WebElementFacade> T find(org.openqa.selenium.By bySelector)
<T extends WebElementFacade> T then(org.openqa.selenium.By bySelector)
String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementgetAttribute in interface WebElementStateListOfWebElementFacades thenFindAll(org.openqa.selenium.By... selector)
long getImplicitTimeoutInMilliseconds()
@Deprecated <T extends WebElementFacade> T withTimeoutOf(int timeout, TimeUnit unit)
<T extends WebElementFacade> T withTimeoutOf(int timeout, TemporalUnit unit)
<T extends WebElementFacade> T withTimeoutOf(Duration duration)
<T extends WebElementFacade> T and()
<T extends WebElementFacade> T then()
List<String> getSelectOptions()
getSelectOptions in interface WebElementStateString getFirstSelectedOptionVisibleText()
List<String> getSelectedVisibleTexts()
getSelectedVisibleTexts in interface WebElementStateString getFirstSelectedOptionValue()
List<String> getSelectedValues()
getSelectedValues in interface WebElementState<T extends WebElementFacade> T type(CharSequence... keysToSend)
<T extends WebElementFacade> T typeAndEnter(String value)
<T extends WebElementFacade> T typeAndTab(String value)
void setWindowFocus()
FluentDropdownSelect select()
FluentDropdownDeselect deselect()
<T extends WebElementFacade> T deselectAll()
<T extends WebElementFacade> T deselectByVisibleText(String label)
<T extends WebElementFacade> T deselectByValue(String value)
<T extends WebElementFacade> T deselectByIndex(int indexValue)
<T extends WebElementFacade> T selectByVisibleText(String label)
<T extends WebElementFacade> T selectByValue(String value)
<T extends WebElementFacade> T selectByIndex(int indexValue)
<T extends WebElementFacade> T waitUntilVisible()
<T extends WebElementFacade> T waitUntilPresent()
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
<T extends WebElementFacade> T waitUntilNotVisible()
String getValue()
getValue in interface WebElementStateString getText()
getText in interface org.openqa.selenium.WebElementgetText in interface WebElementStateString getTextContent()
boolean isDisabled()
isDisabled in interface WebElementState<T extends WebElementFacade> T waitUntilEnabled()
<T extends WebElementFacade> T waitUntilClickable()
<T extends WebElementFacade> T waitUntilDisabled()
void click()
click in interface org.openqa.selenium.WebElementvoid click(ClickStrategy clickStrategy)
void doubleClick()
void contextClick()
void clear()
clear in interface org.openqa.selenium.WebElementboolean containsElements(org.openqa.selenium.By selector)
boolean containsElements(String xpathOrCssSelector)
WebElementState shouldContainElements(org.openqa.selenium.By selector)
WebElementState shouldContainElements(String xpathOrCssSelector)
boolean hasClass(String cssClassName)
org.openqa.selenium.WebElement getElement()
ListOfWebElementFacades findNestedElementsMatching(ResolvableElement nestedElement)
Copyright © 2022. All rights reserved.