com.atlassian.webdriver.testing.rule
Class WebDriverSupport<WD extends org.openqa.selenium.WebDriver>

java.lang.Object
  extended by com.atlassian.webdriver.testing.rule.WebDriverSupport<WD>

public final class WebDriverSupport<WD extends org.openqa.selenium.WebDriver>
extends Object

Support for rules that need a WebDriver instance.

This class defines 'templates' for constructors to provide the WebDriver instance in a generic way. By default it falls back to LifecycleAwareWebDriverGrid.

Since:
2.1

Method Summary
static
<VE extends org.openqa.selenium.WebDriver>
WebDriverSupport<VE>
forInstance(VE webDriver)
           
static
<VE extends org.openqa.selenium.WebDriver>
WebDriverSupport<VE>
forSupplier(com.google.common.base.Supplier<? extends VE> driverSupplier)
           
static WebDriverSupport<AtlassianWebDriver> fromAutoInstall()
           
 WD getDriver()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromAutoInstall

public static WebDriverSupport<AtlassianWebDriver> fromAutoInstall()

forSupplier

public static <VE extends org.openqa.selenium.WebDriver> WebDriverSupport<VE> forSupplier(com.google.common.base.Supplier<? extends VE> driverSupplier)

forInstance

public static <VE extends org.openqa.selenium.WebDriver> WebDriverSupport<VE> forInstance(VE webDriver)

getDriver

@Nonnull
public final WD getDriver()


Copyright © 2014 Atlassian. All rights reserved.