Package org.openqa.selenium.remote
Class JsonToWebElementConverter
- java.lang.Object
-
- org.openqa.selenium.remote.JsonToWebElementConverter
-
- All Implemented Interfaces:
com.google.common.base.Function<java.lang.Object,java.lang.Object>
,java.util.function.Function<java.lang.Object,java.lang.Object>
public class JsonToWebElementConverter extends java.lang.Object implements com.google.common.base.Function<java.lang.Object,java.lang.Object>
ReconstitutesWebElement
s from their JSON representation. Will recursively convert Lists and Maps to catch nested references. All other values pass through the converter unchanged.
-
-
Constructor Summary
Constructors Constructor Description JsonToWebElementConverter(RemoteWebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(java.lang.Object result)
protected RemoteWebElement
newRemoteWebElement()
-
-
-
Constructor Detail
-
JsonToWebElementConverter
public JsonToWebElementConverter(RemoteWebDriver driver)
-
-
Method Detail
-
apply
public java.lang.Object apply(java.lang.Object result)
- Specified by:
apply
in interfacecom.google.common.base.Function<java.lang.Object,java.lang.Object>
- Specified by:
apply
in interfacejava.util.function.Function<java.lang.Object,java.lang.Object>
-
newRemoteWebElement
protected RemoteWebElement newRemoteWebElement()
-
-