org.openqa.selenium.remote.server
Interface Session

All Known Implementing Classes:
DefaultSession

public interface Session


Method Summary
 void attachScreenshot(java.lang.String base64EncodedImage)
           
 void close()
           
<X> X
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()
           
 

Method Detail

close

void close()

execute

<X> X execute(java.util.concurrent.FutureTask<X> future)
          throws java.lang.Exception
Throws:
java.lang.Exception

getDriver

WebDriver getDriver()

getKnownElements

KnownElements getKnownElements()

getCapabilities

Capabilities getCapabilities()

attachScreenshot

void attachScreenshot(java.lang.String base64EncodedImage)

getAndClearScreenshot

java.lang.String getAndClearScreenshot()

isTimedOut

boolean isTimedOut(long timeout)

isInUse

boolean isInUse()
Indicates that the session is in use at this moment (being forwarded to browser)

Returns:
true if the session is active inside the browser

interrupt

void interrupt()

updateLastAccessTime

void updateLastAccessTime()

getSessionId

SessionId getSessionId()

getTemporaryFileSystem

TemporaryFilesystem getTemporaryFileSystem()


Copyright © 2012. All Rights Reserved.