org.openqa.selenium.remote.server.handler
Class WebDriverHandler
java.lang.Object
org.openqa.selenium.remote.server.handler.WebDriverHandler
- All Implemented Interfaces:
- Callable<ResultType>, Handler
- Direct Known Subclasses:
- AcceptAlert, ChangeUrl, ClearAppCache, ClearElement, ClearLocalStorage, ClearSessionStorage, ClickInSession, CloseWindow, CookieHandler, DeleteNamedCookie, DeleteSession, DismissAlert, DoubleClickInSession, GoBack, GoForward, ImplicitlyWait, MouseDown, MouseMoveToLocation, MouseUp, RefreshPage, ResponseAwareWebDriverHandler, Rotate, SendKeyToActiveElement, SetAlertText, SetBrowserConnection, SetLocalStorageItem, SetLocationContext, SetScriptTimeout, SetSessionStorageItem, SetWindowPosition, SetWindowSize, SwitchToFrame, SwitchToWindow
public abstract class WebDriverHandler
- extends Object
- implements Handler, 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 |
WebDriverHandler
protected WebDriverHandler(Session session)
handle
public final ResultType handle()
throws Exception
- Specified by:
handle
in interface Handler
- Throws:
Exception
getSessionId
public String getSessionId()
getScreenshot
public String getScreenshot()
getDriver
protected WebDriver getDriver()
getSession
protected Session getSession()
getKnownElements
protected KnownElements getKnownElements()
newResponse
protected org.openqa.selenium.remote.Response newResponse()
getRealSessionId
protected org.openqa.selenium.remote.SessionId getRealSessionId()
newBySelector
protected BySelector newBySelector()
execute
public void execute(FutureTask<?> task)
throws Exception
- Throws:
Exception
getUnwrappedDriver
protected WebDriver getUnwrappedDriver()
Copyright © 2012. All Rights Reserved.