public WebDriver proxyDriver() { Class<? extends WebDriver> driverClass = webDriverFactory.getClassFor(configuration.getDriverType()); return proxyFor(driverClass, webDriverFactory); }
public WebDriver proxyDriver() { Class<? extends WebDriver> driverClass = webDriverFactory.getClassFor(configuration.getDriverType()); return proxyFor(driverClass, webDriverFactory, Injectors.getInjector().getInstance(Configuration.class)); }
public WebDriver proxyDriver() { Class<? extends WebDriver> driverClass = webDriverFactory.getClassFor(configuration.getDriverType()); return proxyFor(driverClass, webDriverFactory, ConfiguredEnvironment.getConfiguration()); }
/** * Create a new driver instance based on system property values. You can * override this method to use a custom driver if you really know what you * are doing. * * @throws net.thucydides.core.webdriver.UnsupportedDriverException * if the driver type is not supported. */ private static WebDriver newDriver(final Configuration configuration, final WebDriverFactory webDriverFactory, final String driver) { SupportedWebDriver supportedDriverType = getConfiguredWebDriverWithOverride(configuration, driver); Class<? extends WebDriver> webDriverType = webDriverFactory.getClassFor(supportedDriverType); return WebdriverProxyFactory.getFactory().proxyFor(webDriverType, webDriverFactory); }
/** * Create a new driver instance based on system property values. You can * override this method to use a custom driver if you really know what you * are doing. * * @throws net.thucydides.core.webdriver.UnsupportedDriverException * if the driver type is not supported. */ private static WebDriver newDriver(final Configuration configuration, final WebDriverFactory webDriverFactory, final String driver) { SupportedWebDriver supportedDriverType = getConfiguredWebDriverWithOverride(configuration, driver); Class<? extends WebDriver> webDriverType = webDriverFactory.getClassFor(supportedDriverType); return WebdriverProxyFactory.getFactory().proxyFor(webDriverType, webDriverFactory, configuration); }
/** * Create a new driver instance based on system property values. You can * override this method to use a custom driver if you really know what you * are doing. * * @throws UnsupportedDriverException * if the driver type is not supported. */ private static WebDriver newDriver(final DriverConfiguration configuration, final WebDriverFactory webDriverFactory, final String driver, final String options) { SupportedWebDriver supportedDriverType = getConfiguredWebDriverWithOverride(configuration, driver); Class<? extends WebDriver> webDriverType = webDriverFactory.getClassFor(supportedDriverType); return WebdriverProxyFactory.getFactory().proxyFor(webDriverType, webDriverFactory, configuration, options); }