net.thucydides.core.webdriver
Class WebdriverProxyFactory
java.lang.Object
net.thucydides.core.webdriver.WebdriverProxyFactory
- All Implemented Interfaces:
- Serializable
public class WebdriverProxyFactory
- extends Object
- implements Serializable
Provides a proxy for a WebDriver instance.
The proxy lets you delay opening the browser until you really know you are going to use it.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFactory
public static WebdriverProxyFactory getFactory()
getEventListeners
public static List<ThucydidesWebDriverEventListener> getEventListeners()
proxyFor
public WebDriverFacade proxyFor(Class<? extends org.openqa.selenium.WebDriver> driverClass)
proxyFor
public WebDriverFacade proxyFor(Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory)
registerListener
public void registerListener(ThucydidesWebDriverEventListener eventListener)
notifyListenersOfWebdriverCreationIn
public void notifyListenersOfWebdriverCreationIn(WebDriverFacade webDriverFacade)
proxyDriver
public org.openqa.selenium.WebDriver proxyDriver()
resetDriver
public static void resetDriver(org.openqa.selenium.WebDriver driver)
useMockDriver
public void useMockDriver(WebDriverFacade mockDriver)
clearMockDriver
public void clearMockDriver()
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.