Class NewSessionPayload

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class NewSessionPayload
    extends java.lang.Object
    • Method Detail

      • create

        public static NewSessionPayload create​(java.util.Map<java.lang.String,​?> source)
      • writeTo

        public void writeTo​(java.lang.Appendable appendable)
      • stream

        public<Capabilities> stream()
        Stream the Capabilities encoded in the payload used to create this instance. The Stream will start with a Capabilities object matching the OSS capabilities, and will then expand each of the "firstMatch" and "alwaysMatch" contents as defined in the W3C WebDriver spec.

        The OSS Capabilities are listed first because converting the OSS capabilities to the equivalent W3C capabilities isn't particularly easy, so it's hoped that this approach gives us the most compatible implementation.

      • getDownstreamDialects

        public java.util.Set<Dialect> getDownstreamDialects()
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.Object> getMetadata()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object