public class JsonToWebElementConverter
extends java.lang.Object
implements com.google.common.base.Function<java.lang.Object,java.lang.Object>
WebElement
s from their JSON representation. Will recursively convert Lists
and Maps to catch nested references. All other values pass through the converter unchanged.Modifier and Type | Field and Description |
---|---|
private RemoteWebDriver |
driver |
Constructor and Description |
---|
JsonToWebElementConverter(RemoteWebDriver driver) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
apply(java.lang.Object result) |
protected RemoteWebElement |
newRemoteWebElement() |
private final RemoteWebDriver driver
public JsonToWebElementConverter(RemoteWebDriver driver)
public java.lang.Object apply(java.lang.Object result)
apply
in interface com.google.common.base.Function<java.lang.Object,java.lang.Object>
protected RemoteWebElement newRemoteWebElement()