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.SerializableRepresents 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 additionalurifield 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 booleanequals(java.lang.Object that)org.openqa.selenium.CapabilitiesgetCapabilities()org.openqa.selenium.remote.SessionIdgetId()java.time.InstantgetStartTime()org.openqa.selenium.CapabilitiesgetStereotype()java.net.URIgetUri()inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-