org.jbehave.web.selenium
Class RemoteWebDriverProvider

java.lang.Object
  extended by org.jbehave.web.selenium.DelegatingWebDriverProvider
      extended by org.jbehave.web.selenium.RemoteWebDriverProvider
All Implemented Interfaces:
WebDriverProvider
Direct Known Subclasses:
SauceWebDriverProvider

public class RemoteWebDriverProvider
extends DelegatingWebDriverProvider

Provides a RemoteWebDriver that connects to a URL specified by system property "REMOTE_WEBDRIVER_URL" and allows to take screenshots.

The default DesiredCapabilities, specified by defaultDesiredCapabilities(), are for Windows Firefox 3.6 allowing screenshots.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jbehave.web.selenium.DelegatingWebDriverProvider
DelegatingWebDriverProvider.DelegateWebDriverNotFound
 
Field Summary
protected  org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities
           
 
Fields inherited from class org.jbehave.web.selenium.DelegatingWebDriverProvider
delegate
 
Constructor Summary
RemoteWebDriverProvider()
           
RemoteWebDriverProvider(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
           
 
Method Summary
 java.net.URL createRemoteURL()
           
static org.openqa.selenium.remote.DesiredCapabilities defaultDesiredCapabilities()
           
 void initialize()
           
 void useVerbosity(boolean verbose)
           
 
Methods inherited from class org.jbehave.web.selenium.DelegatingWebDriverProvider
get, saveScreenshotTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desiredCapabilities

protected org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities
Constructor Detail

RemoteWebDriverProvider

public RemoteWebDriverProvider()

RemoteWebDriverProvider

public RemoteWebDriverProvider(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
Method Detail

defaultDesiredCapabilities

public static org.openqa.selenium.remote.DesiredCapabilities defaultDesiredCapabilities()

initialize

public void initialize()

createRemoteURL

public java.net.URL createRemoteURL()
                             throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

useVerbosity

public void useVerbosity(boolean verbose)


Copyright © 2011. All Rights Reserved.