Class WebElementToJsonConverter

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

    public class WebElementToJsonConverter
    extends java.lang.Object
    implements com.google.common.base.Function<java.lang.Object,​java.lang.Object>
    Converts RemoteWebElement objects, which may be wrapped, into their JSON representation as defined by the WebDriver wire protocol. This class will recursively convert Lists and Maps to catch nested references.
    See Also:
    WebDriver JSON Wire Protocol
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object apply​(java.lang.Object arg)  
      • 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
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • WebElementToJsonConverter

        public WebElementToJsonConverter()
    • Method Detail

      • apply

        public java.lang.Object apply​(java.lang.Object arg)
        Specified by:
        apply in interface com.google.common.base.Function<java.lang.Object,​java.lang.Object>
        Specified by:
        apply in interface java.util.function.Function<java.lang.Object,​java.lang.Object>