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) |
FluentDropdownDeselect |
deselect() |
<T extends WebElementFacade> |
deselectAll() |
<T extends WebElementFacade> |
deselectByIndex(int indexValue) |
<T extends WebElementFacade> |
deselectByValue(String value) |
<T extends WebElementFacade> |
deselectByVisibleText(String label) |
<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) |
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> |
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, submit
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
getCurrentImplicitTimeout, 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.WebElement
getAttribute
in interface WebElementState
ListOfWebElementFacades 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 WebElementState
String getFirstSelectedOptionVisibleText()
List<String> getSelectedVisibleTexts()
getSelectedVisibleTexts
in interface WebElementState
String 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 WebElementState
String getText()
getText
in interface org.openqa.selenium.WebElement
getText
in interface WebElementState
String 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.WebElement
void click(ClickStrategy clickStrategy)
void clear()
clear
in interface org.openqa.selenium.WebElement
boolean 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()
Copyright © 2021. All rights reserved.