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,
java.util.Map<java.lang.String,java.lang.Object> sessionParameters) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(java.lang.Object result)
This method converts a command result.
|
protected org.openqa.selenium.remote.RemoteWebElement |
newMobileElement() |
newRemoteWebElementpublic JsonToMobileElementConverter(org.openqa.selenium.remote.RemoteWebDriver driver,
java.util.Map<java.lang.String,java.lang.Object> sessionParameters)
driver - an instance of RemoteWebDriver subclasssessionParameters - the map of current session parameterspublic java.lang.Object apply(java.lang.Object result)
apply in interface com.google.common.base.Function<java.lang.Object,java.lang.Object>apply in class org.openqa.selenium.remote.internal.JsonToWebElementConverterresult - is the result of a command execution.protected org.openqa.selenium.remote.RemoteWebElement newMobileElement()