public class NewAppiumSessionPayload
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static NewAppiumSessionPayload |
create(org.openqa.selenium.Capabilities caps)
Creates instance of
NewAppiumSessionPayload. |
java.util.stream.Stream<org.openqa.selenium.Capabilities> |
stream()
Stream the
Capabilities encoded in the payload used to create this instance. |
void |
writeTo(java.lang.Appendable appendable)
Writes json capabilities to some appendable object.
|
public static NewAppiumSessionPayload create(org.openqa.selenium.Capabilities caps) throws java.io.IOException
NewAppiumSessionPayload.caps - capabilities to create a new sessionNewAppiumSessionPayloadjava.io.IOExceptionpublic void writeTo(java.lang.Appendable appendable)
throws java.io.IOException
appendable - to write a jsonjava.io.IOExceptionpublic java.util.stream.Stream<org.openqa.selenium.Capabilities> stream()
throws java.io.IOException
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.java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException