public class DefaultSession extends Object implements Session
Modifier and Type | Method and Description |
---|---|
void |
attachScreenshot(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(FutureTask<X> future) |
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 Exception
Exception
public static Session createSession(DriverFactory factory, Clock clock, org.openqa.selenium.remote.SessionId sessionId, org.openqa.selenium.Capabilities capabilities) throws Exception
Exception
public 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 Exception
Exception
public void updateLastAccessTime()
updateLastAccessTime
in interface Session
public boolean isTimedOut(long timeout)
isTimedOut
in interface Session
public <X> X execute(FutureTask<X> future) throws Exception
public org.openqa.selenium.WebDriver getDriver()
public KnownElements getKnownElements()
getKnownElements
in interface Session
public org.openqa.selenium.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
Copyright © 2015. All rights reserved.