|
||||||||||
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.Exception
public void updateLastAccessTime()
updateLastAccessTime
in interface Session
public boolean isTimedOut(long timeout)
isTimedOut
in interface Session
public void close()
close
in interface Session
public <X> X execute(java.util.concurrent.FutureTask<X> future) throws java.lang.Exception
execute
in interface Session
java.lang.Exception
public WebDriver getDriver()
getDriver
in interface Session
public KnownElements getKnownElements()
getKnownElements
in interface Session
public Capabilities getCapabilities()
getCapabilities
in interface Session
public void attachScreenshot(java.lang.String base64EncodedImage)
attachScreenshot
in interface Session
public java.lang.String getAndClearScreenshot()
getAndClearScreenshot
in interface Session
public SessionId getSessionId()
getSessionId
in interface Session
public TemporaryFilesystem getTemporaryFileSystem()
getTemporaryFileSystem
in interface Session
public boolean isInUse()
Session
isInUse
in interface Session
public void interrupt()
interrupt
in interface Session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |