public class JsonToMobileElementConverter
extends org.openqa.selenium.remote.internal.JsonToWebElementConverter
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 |
---|---|
protected org.openqa.selenium.remote.RemoteWebDriver |
driver |
Constructor and Description |
---|
JsonToMobileElementConverter(org.openqa.selenium.remote.RemoteWebDriver driver,
HasSessionDetails hasSessionDetails) |
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() |
public JsonToMobileElementConverter(org.openqa.selenium.remote.RemoteWebDriver driver, HasSessionDetails hasSessionDetails)
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.JsonToWebElementConverter
result
- is the result of a command execution.protected org.openqa.selenium.remote.RemoteWebElement newMobileElement()