org.openqa.selenium.remote.server.handler
Class WebDriverHandler

java.lang.Object
  extended by org.openqa.selenium.remote.server.handler.WebDriverHandler
All Implemented Interfaces:
java.util.concurrent.Callable<ResultType>, Handler
Direct Known Subclasses:
CaptureScreenshot, ChangeUrl, ClearElement, ClearLocalStorage, ClearSessionStorage, CloseWindow, CookieHandler, DeleteNamedCookie, DeleteSession, ExecuteScript, ExecuteSQL, FindActiveElement, FindElement, FindElements, GetAllCookies, GetAllWindowHandles, GetAppCache, GetAppCacheStatus, GetCurrentUrl, GetCurrentWindowHandle, GetLocalStorageItem, GetLocalStorageKeys, GetLocalStorageSize, GetLocationContext, GetMouseSpeed, GetPageSource, GetSessionCapabilities, GetSessionStorageItem, GetSessionStorageKeys, GetSessionStorageSize, GetTitle, GoBack, GoForward, ImplicitlyWait, IsBrowserOnline, RefreshPage, RemoveLocalStorageItem, RemoveSessionStorageItem, SetBrowserConnection, SetLocalStorageItem, SetLocationContext, SetMouseSpeed, SetSessionStorageItem, SwitchToFrame, SwitchToWindow, WebElementHandler

public abstract class WebDriverHandler
extends java.lang.Object
implements Handler, java.util.concurrent.Callable<ResultType>


Field Summary
protected  SessionId sessionId
           
protected  DriverSessions sessions
           
 
Constructor Summary
WebDriverHandler(DriverSessions sessions)
           
 
Method Summary
 void execute(java.util.concurrent.FutureTask<?> task)
           
protected  WebDriver getDriver()
           
protected  KnownElements getKnownElements()
           
protected  SessionId getRealSessionId()
           
 java.lang.String getScreenshot()
           
 java.lang.String getSessionId()
           
 ResultType handle()
           
protected  Response newResponse()
           
 void setSessionId(java.lang.String sessionId)
           
protected  WebDriver unwrap(WebDriver driver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Callable
call
 

Field Detail

sessions

protected final DriverSessions sessions

sessionId

protected SessionId sessionId
Constructor Detail

WebDriverHandler

public WebDriverHandler(DriverSessions sessions)
Method Detail

handle

public final ResultType handle()
                        throws java.lang.Exception
Specified by:
handle in interface Handler
Throws:
java.lang.Exception

setSessionId

public void setSessionId(java.lang.String sessionId)

getSessionId

public java.lang.String getSessionId()

getScreenshot

public java.lang.String getScreenshot()

getDriver

protected WebDriver getDriver()

getKnownElements

protected KnownElements getKnownElements()

newResponse

protected Response newResponse()

getRealSessionId

protected SessionId getRealSessionId()

execute

public void execute(java.util.concurrent.FutureTask<?> task)
             throws java.lang.Exception
Throws:
java.lang.Exception

unwrap

protected WebDriver unwrap(WebDriver driver)


Copyright © 2010. All Rights Reserved.