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:
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>


Constructor Summary
protected WebDriverHandler(Session session)
           
 
Method Summary
 void execute(java.util.concurrent.FutureTask<?> task)
           
protected  WebDriver getDriver()
           
protected  KnownElements getKnownElements()
           
protected  SessionId getRealSessionId()
           
 java.lang.String getScreenshot()
           
protected  Session getSession()
           
 java.lang.String getSessionId()
           
protected  WebDriver getUnwrappedDriver()
           
 ResultType handle()
           
protected  BySelector newBySelector()
           
protected  Response newResponse()
           
 
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
 

Constructor Detail

WebDriverHandler

protected WebDriverHandler(Session session)
Method Detail

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.