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:
- 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 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 |
WebDriverHandler
protected WebDriverHandler(Session session)
handle
public final ResultType handle()
throws java.lang.Exception
- Specified by:
handle
in interface Handler
- Throws:
java.lang.Exception
getSessionId
public java.lang.String getSessionId()
getScreenshot
public java.lang.String getScreenshot()
getDriver
protected WebDriver getDriver()
getSession
protected Session getSession()
getKnownElements
protected KnownElements getKnownElements()
newResponse
protected Response newResponse()
getRealSessionId
protected SessionId getRealSessionId()
newBySelector
protected BySelector newBySelector()
execute
public void execute(java.util.concurrent.FutureTask<?> task)
throws java.lang.Exception
- Throws:
java.lang.Exception
getUnwrappedDriver
protected WebDriver getUnwrappedDriver()
Copyright © 2011. All Rights Reserved.