Class WebdriverProxyFactory

java.lang.Object
net.thucydides.core.webdriver.WebdriverProxyFactory
All Implemented Interfaces:
java.io.Serializable

public class WebdriverProxyFactory
extends java.lang.Object
implements java.io.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
  • Method Details

    • getFactory

      public static WebdriverProxyFactory getFactory()
    • getEventListeners

      public static java.util.List<ThucydidesWebDriverEventListener> getEventListeners()
    • proxyFor

      public WebDriverFacade proxyFor​(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass)
    • proxyFor

      public WebDriverFacade proxyFor​(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory, Configuration configuration)
    • proxyFor

      public WebDriverFacade proxyFor​(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory, Configuration configuration, java.lang.String options)
    • proxyFor

      public WebDriverFacade proxyFor​(org.openqa.selenium.WebDriver driver)
    • 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()
    • clearBrowserSession

      public static void clearBrowserSession​(org.openqa.selenium.WebDriver driver)