Class JsonToWebElementConverter

  • All Implemented Interfaces:<java.lang.Object,​java.lang.Object>, java.util.function.Function<java.lang.Object,​java.lang.Object>

    public class JsonToWebElementConverter
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object apply​(java.lang.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

      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • JsonToWebElementConverter

        public JsonToWebElementConverter​(RemoteWebDriver driver)
    • Method Detail

      • apply

        public java.lang.Object apply​(java.lang.Object result)
        Specified by:
        apply in interface<java.lang.Object,​java.lang.Object>
        Specified by:
        apply in interface java.util.function.Function<java.lang.Object,​java.lang.Object>