org.alfresco.webdrone
Class AlfrescoRemoteWebDriver

java.lang.Object
  extended by org.openqa.selenium.remote.RemoteWebDriver
      extended by org.alfresco.webdrone.AlfrescoRemoteWebDriver
All Implemented Interfaces:
org.openqa.selenium.HasCapabilities, org.openqa.selenium.HasInputDevices, org.openqa.selenium.internal.FindsByClassName, org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsByName, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebDriver

public class AlfrescoRemoteWebDriver
extends org.openqa.selenium.remote.RemoteWebDriver
implements org.openqa.selenium.TakesScreenshot

Custom RemoteWebDriver that allows us to extend the remote web driver with added functionalities such as screen grab and ability to load files from test machine to the grid

Since:
1.1
Author:
Michael Suzuki

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.When
 
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
 
Constructor Summary
AlfrescoRemoteWebDriver(URL remoteAddress, org.openqa.selenium.Capabilities desiredCapabilities)
           
AlfrescoRemoteWebDriver(URL remoteAddress, org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.remote.FileDetector fd)
          Constructor that instantiate the RemoteWebDriver with a flag to indicate files will be loaded from the client.
 
Method Summary
protected  void finalize()
          Clean up process once the driver is not in use.
<X> X
getScreenshotAs(org.openqa.selenium.OutputType<X> target)
           
 
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
close, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getPageSource, getRemoteStatus, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, quit, setCommandExecutor, setElementConverter, setFileDetector, setFoundBy, setLogLevel, setSessionId, startClient, startSession, startSession, stopClient, switchTo, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlfrescoRemoteWebDriver

public AlfrescoRemoteWebDriver(URL remoteAddress,
                               org.openqa.selenium.Capabilities desiredCapabilities)

AlfrescoRemoteWebDriver

public AlfrescoRemoteWebDriver(URL remoteAddress,
                               org.openqa.selenium.Capabilities desiredCapabilities,
                               org.openqa.selenium.remote.FileDetector fd)
Constructor that instantiate the RemoteWebDriver with a flag to indicate files will be loaded from the client.

Parameters:
remoteAddress -
desiredCapabilities -
fd -
Method Detail

getScreenshotAs

public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
                  throws org.openqa.selenium.WebDriverException
Specified by:
getScreenshotAs in interface org.openqa.selenium.TakesScreenshot
Throws:
org.openqa.selenium.WebDriverException

finalize

protected void finalize()
                 throws Throwable
Clean up process once the driver is not in use.

Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2013. All Rights Reserved.