public class JsonToMobileElementConverter
extends org.openqa.selenium.remote.internal.JsonToWebElementConverter
WebElements 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 |
|---|---|
protected org.openqa.selenium.remote.RemoteWebDriver |
driver |
| Constructor and Description |
|---|
JsonToMobileElementConverter(org.openqa.selenium.remote.RemoteWebDriver driver,
HasSessionDetails hasSessionDetails)
Creates a new instance based on
driver and object with session details. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(java.lang.Object result) |
protected org.openqa.selenium.remote.RemoteWebElement |
newRemoteWebElement() |
public JsonToMobileElementConverter(org.openqa.selenium.remote.RemoteWebDriver driver,
HasSessionDetails hasSessionDetails)
driver and object with session details.driver - an instance of RemoteWebDriver subclasshasSessionDetails - object that has session detailspublic java.lang.Object apply(java.lang.Object result)
apply in interface java.util.function.Function<java.lang.Object,java.lang.Object>apply in class org.openqa.selenium.remote.internal.JsonToWebElementConverterprotected org.openqa.selenium.remote.RemoteWebElement newRemoteWebElement()
newRemoteWebElement in class org.openqa.selenium.remote.internal.JsonToWebElementConverter