org.openqa.selenium.remote.internal
Class JsonToWebElementConverter

java.lang.Object
  extended by org.openqa.selenium.remote.internal.JsonToWebElementConverter
All Implemented Interfaces:
com.google.common.base.Function<Object,Object>

public class JsonToWebElementConverter
extends Object
implements com.google.common.base.Function<Object,Object>

Reconstitutes WebElements from their JSON representation. Will recursively convert Lists and Maps to catch nested references. All other values pass through the converter unchanged.


Constructor Summary
JsonToWebElementConverter(RemoteWebDriver driver)
           
 
Method Summary
 Object apply(Object result)
           
protected  RemoteWebElement newRemoteWebElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

JsonToWebElementConverter

public JsonToWebElementConverter(RemoteWebDriver driver)
Method Detail

apply

public Object apply(Object result)
Specified by:
apply in interface com.google.common.base.Function<Object,Object>

newRemoteWebElement

protected RemoteWebElement newRemoteWebElement()


Copyright © 2012. All Rights Reserved.