public class WebElementQuery extends Object implements WebElementProvider
WebElementQuery
queries the web element(s) each time getWebElement()
or getWebElementList()
is
called. It does so by using the searchContext
and the selector
.Constructor and Description |
---|
WebElementQuery(org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By by)
Constructs a
WebElementQuery . |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.WebElement |
getWebElement()
Returns a web element
|
List<org.openqa.selenium.WebElement> |
getWebElementList()
Returns a web element list
|
public WebElementQuery(org.openqa.selenium.SearchContext searchContext, org.openqa.selenium.By by)
WebElementQuery
.searchContext
- the search context to use for querying the web element(s)by
- the selector to use for querying the web element(s)public List<org.openqa.selenium.WebElement> getWebElementList()
WebElementProvider
getWebElementList
in interface WebElementProvider
public org.openqa.selenium.WebElement getWebElement()
WebElementProvider
getWebElement
in interface WebElementProvider
Copyright © 2018–2021 b+m Informatik AG. All rights reserved.