|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.remote.server.DefaultSession
public class DefaultSession
The default session implementation. Thread safety notes: There are basically two different thread types rummaging around in this class: Container listener threads which deliver requests, and the "executor" thread that processes each request. This means there is a minefield of thread constraints/guards, some of which are described in docs for each field.
| Method Summary | ||
|---|---|---|
void |
attachScreenshot(java.lang.String base64EncodedImage)
|
|
void |
close()
|
|
static Session |
createSession(DriverFactory factory,
SessionId sessionId,
Capabilities capabilities)
|
|
static Session |
createSession(DriverFactory factory,
TemporaryFilesystem tempFs,
SessionId sessionId,
Capabilities capabilities)
|
|
|
execute(java.util.concurrent.FutureTask<X> future)
|
|
java.lang.String |
getAndClearScreenshot()
|
|
Capabilities |
getCapabilities()
|
|
WebDriver |
getDriver()
|
|
KnownElements |
getKnownElements()
|
|
SessionId |
getSessionId()
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Session createSession(DriverFactory factory,
SessionId sessionId,
Capabilities capabilities)
throws java.lang.Exception
java.lang.Exception
public static Session createSession(DriverFactory factory,
TemporaryFilesystem tempFs,
SessionId sessionId,
Capabilities capabilities)
throws java.lang.Exception
java.lang.Exceptionpublic void updateLastAccessTime()
updateLastAccessTime in interface Sessionpublic boolean isTimedOut(long timeout)
isTimedOut in interface Sessionpublic void close()
close in interface Session
public <X> X execute(java.util.concurrent.FutureTask<X> future)
throws java.lang.Exception
execute in interface Sessionjava.lang.Exceptionpublic WebDriver getDriver()
getDriver in interface Sessionpublic KnownElements getKnownElements()
getKnownElements in interface Sessionpublic Capabilities getCapabilities()
getCapabilities in interface Sessionpublic void attachScreenshot(java.lang.String base64EncodedImage)
attachScreenshot in interface Sessionpublic java.lang.String getAndClearScreenshot()
getAndClearScreenshot in interface Sessionpublic SessionId getSessionId()
getSessionId in interface Sessionpublic TemporaryFilesystem getTemporaryFileSystem()
getTemporaryFileSystem in interface Sessionpublic boolean isInUse()
Session
isInUse in interface Sessionpublic void interrupt()
interrupt in interface Session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||