|
||||||||||
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(String base64EncodedImage)
|
|
void |
close()
|
|
static Session |
createSession(DriverFactory factory,
org.openqa.selenium.remote.SessionId sessionId,
Capabilities capabilities)
|
|
static Session |
createSession(DriverFactory factory,
org.openqa.selenium.io.TemporaryFilesystem tempFs,
org.openqa.selenium.remote.SessionId sessionId,
Capabilities capabilities)
|
|
|
execute(FutureTask<X> future)
|
|
String |
getAndClearScreenshot()
|
|
Capabilities |
getCapabilities()
|
|
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. |
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, org.openqa.selenium.remote.SessionId sessionId, Capabilities capabilities) throws Exception
Exception
public static Session createSession(DriverFactory factory, org.openqa.selenium.io.TemporaryFilesystem tempFs, org.openqa.selenium.remote.SessionId sessionId, Capabilities capabilities) throws Exception
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(FutureTask<X> future) throws Exception
execute
in interface Session
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(String base64EncodedImage)
attachScreenshot
in interface Session
public String getAndClearScreenshot()
getAndClearScreenshot
in interface Session
public org.openqa.selenium.remote.SessionId getSessionId()
getSessionId
in interface Session
public org.openqa.selenium.io.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 |