public class DefaultSession extends java.lang.Object implements Session
| Modifier and Type | Method and Description |
|---|---|
void |
attachScreenshot(java.lang.String base64EncodedImage) |
void |
close() |
static Session |
createSession(DriverFactory factory,
Clock clock,
org.openqa.selenium.remote.SessionId sessionId,
org.openqa.selenium.Capabilities capabilities) |
static Session |
createSession(DriverFactory factory,
org.openqa.selenium.remote.SessionId sessionId,
org.openqa.selenium.Capabilities capabilities) |
static Session |
createSession(DriverFactory factory,
org.openqa.selenium.io.TemporaryFilesystem tempFs,
Clock clock,
org.openqa.selenium.remote.SessionId sessionId,
org.openqa.selenium.Capabilities capabilities) |
<X> X |
execute(java.util.concurrent.FutureTask<X> future) |
java.lang.String |
getAndClearScreenshot() |
org.openqa.selenium.Capabilities |
getCapabilities() |
org.openqa.selenium.WebDriver |
getDriver() |
KnownElements |
getKnownElements() |
org.openqa.selenium.remote.SessionId |
getSessionId() |
org.openqa.selenium.io.TemporaryFilesystem |
getTemporaryFileSystem() |
void |
interrupt() |
boolean |
isInUse()
Indicates that the session is in use at this moment (being forwarded to browser)
|
boolean |
isTimedOut(long timeout) |
void |
updateLastAccessTime()
Touches the session.
|
public static Session createSession(DriverFactory factory, org.openqa.selenium.remote.SessionId sessionId, org.openqa.selenium.Capabilities capabilities) throws java.lang.Exception
java.lang.Exceptionpublic static Session createSession(DriverFactory factory, Clock clock, org.openqa.selenium.remote.SessionId sessionId, org.openqa.selenium.Capabilities capabilities) throws java.lang.Exception
java.lang.Exceptionpublic static Session createSession(DriverFactory factory, org.openqa.selenium.io.TemporaryFilesystem tempFs, Clock clock, org.openqa.selenium.remote.SessionId sessionId, org.openqa.selenium.Capabilities capabilities) throws java.lang.Exception
java.lang.Exceptionpublic void updateLastAccessTime()
updateLastAccessTime in interface Sessionpublic boolean isTimedOut(long timeout)
isTimedOut in interface Sessionpublic <X> X execute(java.util.concurrent.FutureTask<X> future)
throws java.lang.Exception
public org.openqa.selenium.WebDriver getDriver()
public KnownElements getKnownElements()
getKnownElements in interface Sessionpublic org.openqa.selenium.Capabilities getCapabilities()
getCapabilities in interface Sessionpublic void attachScreenshot(java.lang.String base64EncodedImage)
attachScreenshot in interface Sessionpublic java.lang.String getAndClearScreenshot()
getAndClearScreenshot in interface Sessionpublic org.openqa.selenium.remote.SessionId getSessionId()
getSessionId in interface Sessionpublic org.openqa.selenium.io.TemporaryFilesystem getTemporaryFileSystem()
getTemporaryFileSystem in interface Sessionpublic boolean isInUse()
Session