@Component(value="webElementProxyFactory") public class WebElementProxyFactory extends Object
SearchContextMethodInterceptor
and WebElementListMethodInterceptor
.SearchContextMethodInterceptor
,
WebElementListMethodInterceptor
Constructor and Description |
---|
WebElementProxyFactory() |
Modifier and Type | Method and Description |
---|---|
List<org.openqa.selenium.WebElement> |
getWebElementListProxy(com.google.common.base.Supplier<List<org.openqa.selenium.WebElement>> webElementListSupplier)
Proxies a list of
web elements . |
org.openqa.selenium.WebElement |
getWebElementProxy(com.google.common.base.Supplier<org.openqa.selenium.WebElement> webElementSupplier)
Proxies the
WebElement which is supplied by the given webElementSupplier. |
public org.openqa.selenium.WebElement getWebElementProxy(com.google.common.base.Supplier<org.openqa.selenium.WebElement> webElementSupplier)
WebElement
which is supplied by the given webElementSupplier. The proxy implements all interfaces
which webElementType
implements. Prxoying the web element ensures that it is queried lazily, so you can get a
web element although it might not be present on the current page.webElementSupplier
- WebElement
Supplier
SearchContextMethodInterceptor
public List<org.openqa.selenium.WebElement> getWebElementListProxy(com.google.common.base.Supplier<List<org.openqa.selenium.WebElement>> webElementListSupplier)
web elements
. The proxied list ensures that all contained web elements are proxied
by getWebElementProxy(Supplier)
.webElementListSupplier
- WebElement
list Supplier
WebElementListMethodInterceptor
Copyright © 2018–2020 b+m Informatik AG. All rights reserved.