org.openqa.selenium.remote.server.handler
Class WebDriverHandler
java.lang.Object
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, GetScreenOrientation, GetSessionCapabilities, GetSessionStorageItem, GetSessionStorageKeys, GetSessionStorageSize, GetTitle, GoBack, GoForward, ImplicitlyWait, IsBrowserOnline, RefreshPage, RemoveLocalStorageItem, RemoveSessionStorageItem, Rotate, SetBrowserConnection, SetLocalStorageItem, SetLocationContext, SetMouseSpeed, SetSessionStorageItem, SwitchToFrame, SwitchToWindow, WebElementHandler
public abstract class WebDriverHandler
- extends java.lang.Object
- implements Handler, java.util.concurrent.Callable<ResultType>
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 |
sessions
protected final DriverSessions sessions
sessionId
protected volatile SessionId sessionId
WebDriverHandler
public WebDriverHandler(DriverSessions sessions)
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.