Class Session


  • public class Session
    extends java.lang.Object
    Represents a running instance of a WebDriver session. It is identified by a SessionId. The serialized form is designed to mimic that of the return value of the New Session command, but an additional uri field must also be present.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Session

        public 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 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object