public class WebElementFacadeImpl extends Object implements WebElementFacade, WebElementFacade
Constructor and Description |
---|
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
long implicitTimeoutInMilliseconds) |
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement webElement,
long implicitTimeoutInMilliseconds) |
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement webElement,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement webElement,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds,
org.openqa.selenium.By bySelector) |
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
org.openqa.selenium.WebElement webElement,
org.openqa.selenium.WebElement resolvedELement,
org.openqa.selenium.By bySelector,
long timeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
WebElementFacadeImpl(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement webElement,
long implicitTimeoutInMilliseconds,
long waitForTimeoutInMilliseconds,
org.openqa.selenium.By bySelector) |
Modifier and Type | Method and Description |
---|---|
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)
Click on an element, with or without waiting for it to be visible and enabled
|
boolean |
containsElements(org.openqa.selenium.By bySelector) |
boolean |
containsElements(String xpathOrCssSelector) |
boolean |
containsOnlyText(String value)
Does this element exactly match given text?
|
boolean |
containsSelectOption(String value)
Does this dropdown contain the specified value.
|
boolean |
containsText(String value)
Does this element contain a given text?
|
boolean |
containsValue(String value)
Does this element contain a given value attribute?
|
void |
contextClick() |
FluentDropdownDeselect |
deselect() |
WebElementFacade |
deselectAll() |
WebElementFacade |
deselectByIndex(int indexValue) |
WebElementFacade |
deselectByValue(String value) |
WebElementFacade |
deselectByVisibleText(String label) |
void |
doubleClick() |
protected boolean |
driverIsDisabled() |
WebElementState |
expect(String errorMessage) |
protected WebElementState |
expectingErrorMessage(String errorMessage) |
WebElementFacade |
find(org.openqa.selenium.By bySelector) |
WebElementFacade |
findBy(org.openqa.selenium.By selector) |
<T extends WebElementFacade> |
findBy(String xpathOrCssSelector) |
<T extends WebElementFacade> |
findBy(String xpathOrCssSelector,
Object... arguments) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
ListOfWebElementFacades |
findNestedElementsMatching(ResolvableElement nestedElement) |
WebElementFacade |
foundBy(String foundBy) |
static ListOfWebElementFacades |
fromWebElements(List<org.openqa.selenium.WebElement> elements) |
String |
getAccessibleName() |
String |
getAriaRole() |
String |
getAttribute(String name) |
protected InternalSystemClock |
getClock() |
org.openqa.selenium.interactions.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
Duration |
getCurrentImplicitTimeout() |
String |
getDomAttribute(String name) |
String |
getDomProperty(String name) |
org.openqa.selenium.WebElement |
getElement() |
protected String |
getErrorMessage(String defaultErrorMessage) |
String |
getFirstSelectedOptionValue() |
String |
getFirstSelectedOptionVisibleText() |
String |
getFoundBy() |
Duration |
getImplicitTimeout() |
long |
getImplicitTimeoutInMilliseconds() |
protected JavascriptExecutorFacade |
getJavascriptExecutorFacade() |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.support.pagefactory.ElementLocator |
getLocator() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
String |
getSelectedValue() |
List<String> |
getSelectedValues() |
List<String> |
getSelectedVisibleTexts() |
String |
getSelectedVisibleTextValue() |
List<String> |
getSelectOptions() |
List<String> |
getSelectOptionValues() |
org.openqa.selenium.SearchContext |
getShadowRoot() |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
String |
getTextContent() |
String |
getTextValue() |
String |
getValue() |
org.openqa.selenium.WebElement |
getWrappedElement() |
boolean |
hasClass(String cssClassName) |
boolean |
hasFocus()
Does this element currently have the focus.
|
boolean |
isClickable()
Check to see if the element is clickable
|
boolean |
isCurrentlyEnabled() |
boolean |
isCurrentlyVisible()
Is this web element present and visible on the screen
This method will not throw an exception if the element is not on the screen at all.
|
boolean |
isDisabled() |
boolean |
isDisplayed()
Is this element displayed or not? This method avoids the problem of having to parse an
element's "style" attribute.
|
boolean |
isEnabled() |
boolean |
isPresent()
Returns true if an element is present on the screen, whether visible or not.
|
boolean |
isSelected() |
boolean |
isVisible()
Is this web element present and visible on the screen
This method will not throw an exception if the element is not on the screen at all.
|
protected void |
notifyScreenChange() |
Duration |
resetTimeouts() |
FluentDropdownSelect |
select() |
WebElementFacade |
selectByIndex(int indexValue)
Deprecated.
|
WebElementFacade |
selectByValue(String value)
Deprecated.
|
WebElementFacade |
selectByVisibleText(String label) |
void |
sendKeys(CharSequence... keysToSend) |
void |
setImplicitTimeout(Duration implicitTimeout) |
void |
setWindowFocus() |
WebElementState |
shouldBeCurrentlyVisible()
Checks whether a web element is visible.
|
WebElementState |
shouldBeEnabled() |
WebElementState |
shouldBePresent() |
WebElementState |
shouldBeSelected() |
WebElementState |
shouldBeVisible()
Checks whether a web element is visible.
|
WebElementState |
shouldContainElements(org.openqa.selenium.By bySelector) |
WebElementState |
shouldContainElements(String xpathOrCssSelector) |
WebElementState |
shouldContainOnlyText(String textValue)
Check that an element exactly matches a text value
|
WebElementState |
shouldContainSelectedOption(String textValue) |
WebElementState |
shouldContainText(String textValue)
Check that an element contains a text value
|
WebElementState |
shouldNotBeCurrentlyVisible()
Checks whether a web element is not visible straight away.
|
WebElementState |
shouldNotBeEnabled() |
WebElementState |
shouldNotBePresent() |
WebElementState |
shouldNotBeSelected() |
WebElementState |
shouldNotBeVisible()
Checks whether a web element is not visible.
|
WebElementState |
shouldNotContainText(String textValue)
Check that an element does not contain a text value
|
void |
submit() |
WebElementFacade |
then()
Convenience method to chain method calls more fluently.
|
WebElementFacade |
then(org.openqa.selenium.By bySelector) |
WebElementFacade |
then(String xpathOrCssSelector) |
WebElementFacade |
then(String xpathOrCssSelector,
Object... arguments) |
WebElementFacade |
thenFind(String xpathOrCssSelector) |
WebElementFacade |
thenFind(String xpathOrCssSelector,
Object... arguments) |
ListOfWebElementFacades |
thenFindAll(org.openqa.selenium.By... selectors) |
ListOfWebElementFacades |
thenFindAll(String xpathOrCssSelector) |
ListOfWebElementFacades |
thenFindAll(String xpathOrCssSelector,
Object... arguments) |
long |
timeoutInMilliseconds() |
String |
toString() |
WebElementFacade |
type(CharSequence... keysToSend)
Type a value into a field, making sure that the field is empty first.
|
WebElementFacade |
typeAndEnter(String value)
Type a value into a field and then press Enter, making sure that the field is empty first.
|
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() |
WebElementFacade |
waitUntilClickable() |
WebElementFacade |
waitUntilDisabled() |
protected void |
waitUntilElementAvailable() |
protected void |
waitUntilElementPresent() |
WebElementFacade |
waitUntilEnabled() |
WebElementFacade |
waitUntilNotVisible() |
WebElementFacade |
waitUntilPresent() |
WebElementFacade |
waitUntilVisible() |
WebElementFacade |
withTimeoutOf(Duration duration) |
WebElementFacade |
withTimeoutOf(int timeout,
TemporalUnit unit) |
WebElementFacade |
withTimeoutOf(int timeout,
TimeUnit unit) |
static <T extends WebElementFacade> |
wrapWebElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.By bySelector,
long timeoutInMilliseconds,
long waitForTimeoutInMilliseconds,
String foundBy) |
static WebElementFacade |
wrapWebElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element) |
static WebElementFacade |
wrapWebElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element,
long timeout) |
static <T extends WebElementFacade> |
wrapWebElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element,
long timeoutInMilliseconds,
long waitForTimeoutInMilliseconds) |
static <T extends WebElementFacade> |
wrapWebElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element,
long timeoutInMilliseconds,
long waitForTimeoutInMilliseconds,
String foundBy) |
static <T extends WebElementFacade> |
wrapWebElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement resolvedELement,
org.openqa.selenium.WebElement element,
org.openqa.selenium.By bySelector,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
long timeoutInMilliseconds,
long waitForTimeoutInMilliseconds,
String foundBy) |
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement webElement, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds, org.openqa.selenium.By bySelector)
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement webElement, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds, org.openqa.selenium.By bySelector)
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement webElement, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds)
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement webElement, long implicitTimeoutInMilliseconds)
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement webElement, org.openqa.selenium.WebElement resolvedELement, org.openqa.selenium.By bySelector, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds)
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, long implicitTimeoutInMilliseconds)
public WebElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds)
public static <T extends WebElementFacade> T wrapWebElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds)
public static <T extends WebElementFacade> T wrapWebElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds, String foundBy)
public static <T extends WebElementFacade> T wrapWebElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement resolvedELement, org.openqa.selenium.WebElement element, org.openqa.selenium.By bySelector, org.openqa.selenium.support.pagefactory.ElementLocator locator, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds, String foundBy)
public static <T extends WebElementFacade> T wrapWebElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By bySelector, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds, String foundBy)
public static WebElementFacade wrapWebElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element, long timeout)
public static WebElementFacade wrapWebElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element)
public org.openqa.selenium.WebElement getElement()
getElement
in interface WebElementFacade
protected JavascriptExecutorFacade getJavascriptExecutorFacade()
protected InternalSystemClock getClock()
public WebElementFacade then(String xpathOrCssSelector, Object... arguments)
then
in interface WebElementFacade
public WebElementFacade thenFind(String xpathOrCssSelector, Object... arguments)
thenFind
in interface WebElementFacade
public WebElementFacade thenFind(String xpathOrCssSelector)
thenFind
in interface WebElementFacade
public WebElementFacade then(String xpathOrCssSelector)
then
in interface WebElementFacade
public <T extends WebElementFacade> T findBy(String xpathOrCssSelector)
findBy
in interface WebElementFacade
public <T extends WebElementFacade> T findBy(String xpathOrCssSelector, Object... arguments)
findBy
in interface WebElementFacade
public long timeoutInMilliseconds()
public ListOfWebElementFacades thenFindAll(String xpathOrCssSelector)
thenFindAll
in interface WebElementFacade
public ListOfWebElementFacades thenFindAll(String xpathOrCssSelector, Object... arguments)
thenFindAll
in interface WebElementFacade
public WebElementFacade findBy(org.openqa.selenium.By selector)
findBy
in interface WebElementFacade
public WebElementFacade find(org.openqa.selenium.By bySelector)
find
in interface WebElementFacade
public WebElementFacade then(org.openqa.selenium.By bySelector)
then
in interface WebElementFacade
public String getAttribute(String name)
getAttribute
in interface WebElementFacade
getAttribute
in interface WebElementState
getAttribute
in interface org.openqa.selenium.WebElement
public ListOfWebElementFacades thenFindAll(org.openqa.selenium.By... selectors)
thenFindAll
in interface WebElementFacade
public long getImplicitTimeoutInMilliseconds()
getImplicitTimeoutInMilliseconds
in interface WebElementFacade
public Duration getImplicitTimeout()
public WebElementFacade withTimeoutOf(int timeout, TimeUnit unit)
withTimeoutOf
in interface WebElementFacade
public WebElementFacade withTimeoutOf(int timeout, TemporalUnit unit)
withTimeoutOf
in interface WebElementFacade
public WebElementFacade withTimeoutOf(Duration duration)
withTimeoutOf
in interface WebElementFacade
public boolean isVisible()
isVisible
in interface WebElementState
public WebElementFacade and()
and
in interface WebElementFacade
public WebElementFacade then()
then
in interface WebElementFacade
public boolean isCurrentlyVisible()
isCurrentlyVisible
in interface WebElementState
public boolean isCurrentlyEnabled()
isCurrentlyEnabled
in interface WebElementState
public WebElementState shouldBeVisible()
shouldBeVisible
in interface WebElementState
public WebElementState shouldBeCurrentlyVisible()
shouldBeCurrentlyVisible
in interface WebElementState
public WebElementState shouldNotBeVisible()
shouldNotBeVisible
in interface WebElementState
public WebElementState shouldNotBeCurrentlyVisible()
shouldNotBeCurrentlyVisible
in interface WebElementState
public boolean hasFocus()
hasFocus
in interface WebElementState
public boolean containsText(String value)
containsText
in interface WebElementState
public boolean containsValue(String value)
WebElementState
containsValue
in interface WebElementState
public boolean containsOnlyText(String value)
containsOnlyText
in interface WebElementState
public boolean containsSelectOption(String value)
containsSelectOption
in interface WebElementState
public List<String> getSelectOptions()
getSelectOptions
in interface WebElementFacade
getSelectOptions
in interface WebElementState
public List<String> getSelectOptionValues()
getSelectOptionValues
in interface WebElementFacade
public org.openqa.selenium.support.pagefactory.ElementLocator getLocator()
public void setImplicitTimeout(Duration implicitTimeout)
setImplicitTimeout
in interface ConfigurableTimeouts
public Duration getCurrentImplicitTimeout()
getCurrentImplicitTimeout
in interface ConfigurableTimeouts
public Duration resetTimeouts()
resetTimeouts
in interface ConfigurableTimeouts
public String getFoundBy()
public WebElementState shouldContainText(String textValue)
shouldContainText
in interface WebElementState
textValue
- public WebElementState shouldContainOnlyText(String textValue)
shouldContainOnlyText
in interface WebElementState
textValue
- public WebElementState shouldContainSelectedOption(String textValue)
shouldContainSelectedOption
in interface WebElementState
public WebElementState shouldNotContainText(String textValue)
shouldNotContainText
in interface WebElementState
textValue
- public WebElementState shouldBeEnabled()
shouldBeEnabled
in interface WebElementState
public boolean isEnabled()
isEnabled
in interface WebElementState
isEnabled
in interface org.openqa.selenium.WebElement
public WebElementState shouldNotBeEnabled()
shouldNotBeEnabled
in interface WebElementState
public boolean isClickable()
isClickable
in interface WebElementState
public WebElementFacade type(CharSequence... keysToSend)
type
in interface WebElementFacade
keysToSend
- public WebElementFacade typeAndEnter(String value)
typeAndEnter
in interface WebElementFacade
value
- public WebElementFacade typeAndTab(String value)
typeAndTab
in interface WebElementFacade
value
- public void setWindowFocus()
setWindowFocus
in interface WebElementFacade
public FluentDropdownSelect select()
select
in interface WebElementFacade
public FluentDropdownDeselect deselect()
deselect
in interface WebElementFacade
public WebElementFacade deselectAll()
deselectAll
in interface WebElementFacade
public WebElementFacade deselectByIndex(int indexValue)
deselectByIndex
in interface WebElementFacade
public WebElementFacade deselectByVisibleText(String label)
deselectByVisibleText
in interface WebElementFacade
public WebElementFacade deselectByValue(String value)
deselectByValue
in interface WebElementFacade
public WebElementFacade selectByVisibleText(String label)
selectByVisibleText
in interface WebElementFacade
public String getSelectedVisibleTextValue()
getSelectedVisibleTextValue
in interface WebElementState
public String getFirstSelectedOptionVisibleText()
getFirstSelectedOptionVisibleText
in interface WebElementFacade
public List<String> getSelectedVisibleTexts()
getSelectedVisibleTexts
in interface WebElementFacade
getSelectedVisibleTexts
in interface WebElementState
public String getFirstSelectedOptionValue()
getFirstSelectedOptionValue
in interface WebElementFacade
@Deprecated public WebElementFacade selectByValue(String value)
selectByValue
in interface WebElementFacade
public String getSelectedValue()
getSelectedValue
in interface WebElementState
public List<String> getSelectedValues()
getSelectedValues
in interface WebElementFacade
getSelectedValues
in interface WebElementState
@Deprecated public WebElementFacade selectByIndex(int indexValue)
selectByIndex
in interface WebElementFacade
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target) throws org.openqa.selenium.WebDriverException
getScreenshotAs
in interface org.openqa.selenium.TakesScreenshot
org.openqa.selenium.WebDriverException
protected void waitUntilElementAvailable()
protected void waitUntilElementPresent()
protected boolean driverIsDisabled()
public boolean isPresent()
isPresent
in interface WebElementState
public WebElementState shouldBePresent()
shouldBePresent
in interface WebElementState
public WebElementState shouldNotBePresent()
shouldNotBePresent
in interface WebElementState
public WebElementState shouldBeSelected()
shouldBeSelected
in interface WebElementState
public WebElementState shouldNotBeSelected()
shouldNotBeSelected
in interface WebElementState
public WebElementFacade waitUntilVisible()
waitUntilVisible
in interface WebElementFacade
public WebElementFacade waitUntilPresent()
waitUntilPresent
in interface WebElementFacade
public org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
waitForCondition
in interface WebElementFacade
public WebElementFacade waitUntilNotVisible()
waitUntilNotVisible
in interface WebElementFacade
public String getValue()
getValue
in interface WebElementFacade
getValue
in interface WebElementState
public boolean isSelected()
isSelected
in interface WebElementState
isSelected
in interface org.openqa.selenium.WebElement
public String getText()
getText
in interface WebElementFacade
getText
in interface WebElementState
getText
in interface org.openqa.selenium.WebElement
public String getTextContent()
getTextContent
in interface WebElementFacade
public boolean isDisabled()
isDisabled
in interface WebElementFacade
isDisabled
in interface WebElementState
public WebElementFacade waitUntilEnabled()
waitUntilEnabled
in interface WebElementFacade
public WebElementFacade waitUntilClickable()
waitUntilClickable
in interface WebElementFacade
public WebElementFacade waitUntilDisabled()
waitUntilDisabled
in interface WebElementFacade
public String getTextValue()
getTextValue
in interface WebElementState
public WebElementState expect(String errorMessage)
expect
in interface WebElementState
protected WebElementState expectingErrorMessage(String errorMessage)
public void click(ClickStrategy clickStrategy)
click
in interface WebElementFacade
public void click()
click
in interface WebElementFacade
click
in interface org.openqa.selenium.WebElement
public void doubleClick()
doubleClick
in interface WebElementFacade
public void contextClick()
contextClick
in interface WebElementFacade
public void clear()
clear
in interface WebElementFacade
clear
in interface org.openqa.selenium.WebElement
protected void notifyScreenChange()
public String toString()
toString
in interface WebElementFacade
toString
in class Object
public void submit()
submit
in interface org.openqa.selenium.WebElement
public void sendKeys(CharSequence... keysToSend)
sendKeys
in interface org.openqa.selenium.WebElement
public String getTagName()
getTagName
in interface org.openqa.selenium.WebElement
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement
in interface org.openqa.selenium.SearchContext
findElement
in interface org.openqa.selenium.WebElement
public boolean isDisplayed()
isDisplayed
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Point getLocation()
getLocation
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Dimension getSize()
getSize
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Rectangle getRect()
getRect
in interface org.openqa.selenium.WebElement
public String getCssValue(String propertyName)
getCssValue
in interface org.openqa.selenium.WebElement
public boolean containsElements(org.openqa.selenium.By bySelector)
containsElements
in interface WebElementFacade
public boolean containsElements(String xpathOrCssSelector)
containsElements
in interface WebElementFacade
public WebElementState shouldContainElements(org.openqa.selenium.By bySelector)
shouldContainElements
in interface WebElementFacade
public WebElementState shouldContainElements(String xpathOrCssSelector)
shouldContainElements
in interface WebElementFacade
public boolean hasClass(String cssClassName)
hasClass
in interface WebElementFacade
public WebElementFacade foundBy(String foundBy)
public org.openqa.selenium.interactions.Coordinates getCoordinates()
getCoordinates
in interface org.openqa.selenium.interactions.Locatable
public org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement
in interface org.openqa.selenium.WrapsElement
public String getDomProperty(String name)
getDomProperty
in interface org.openqa.selenium.WebElement
public String getDomAttribute(String name)
getDomAttribute
in interface org.openqa.selenium.WebElement
public String getAriaRole()
getAriaRole
in interface org.openqa.selenium.WebElement
public String getAccessibleName()
getAccessibleName
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.SearchContext getShadowRoot()
getShadowRoot
in interface org.openqa.selenium.WebElement
public ListOfWebElementFacades findNestedElementsMatching(ResolvableElement nestedElement)
findNestedElementsMatching
in interface WebElementFacade
public static ListOfWebElementFacades fromWebElements(List<org.openqa.selenium.WebElement> elements)
Copyright © 2022. All rights reserved.