Package org.openqa.selenium.grid.data
Class Session
- java.lang.Object
-
- org.openqa.selenium.grid.data.Session
-
- All Implemented Interfaces:
java.io.Serializable
public class Session extends java.lang.Object implements java.io.Serializable
Represents a running instance of a WebDriver session. It is identified by aSessionId
. The serialized form is designed to mimic that of the return value of the New Session command, but an additionaluri
field must also be present.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Session(org.openqa.selenium.remote.SessionId id, java.net.URI uri, org.openqa.selenium.Capabilities stereotype, org.openqa.selenium.Capabilities capabilities, java.time.Instant startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
org.openqa.selenium.Capabilities
getCapabilities()
org.openqa.selenium.remote.SessionId
getId()
java.time.Instant
getStartTime()
org.openqa.selenium.Capabilities
getStereotype()
java.net.URI
getUri()
int
hashCode()
-
-
-
Method Detail
-
getId
public org.openqa.selenium.remote.SessionId getId()
-
getUri
public java.net.URI getUri()
-
getStereotype
public org.openqa.selenium.Capabilities getStereotype()
-
getCapabilities
public org.openqa.selenium.Capabilities getCapabilities()
-
getStartTime
public java.time.Instant getStartTime()
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-