public Pages(Configuration configuration) { this.configuration = configuration; proxyFactory = WebdriverProxyFactory.getFactory(); }
public Pages(Configuration configuration) { this.configuration = configuration; proxyFactory = WebdriverProxyFactory.getFactory(); }
public Pages(Configuration configuration) { this.configuration = configuration; proxyFactory = WebdriverProxyFactory.getFactory(); }
public BaseStepListener(final File outputDirectory, Injector injector) { this.proxyFactory = WebdriverProxyFactory.getFactory(); this.testOutcomes = Lists.newArrayList(); this.currentStepStack = new Stack<TestStep>(); this.currentGroupStack = new Stack<TestStep>(); this.outputDirectory = outputDirectory; this.inFluentStepSequence = false; this.storywideIssues = Lists.newArrayList(); this.storywideTags = Lists.newArrayList(); this.webdriverManager = injector.getInstance(WebdriverManager.class); this.clock = injector.getInstance(SystemClock.class); this.configuration = injector.getInstance(Configuration.class); this.screenshotProcessor = injector.getInstance(ScreenshotProcessor.class); }
public BaseStepListener(final File outputDirectory, Injector injector) { this.proxyFactory = WebdriverProxyFactory.getFactory(); this.testOutcomes = Lists.newArrayList(); this.currentStepStack = new Stack<TestStep>(); this.currentGroupStack = new Stack<TestStep>(); this.outputDirectory = outputDirectory; this.inFluentStepSequence = false; this.storywideIssues = Lists.newArrayList(); this.storywideTags = Lists.newArrayList(); this.webdriverManager = injector.getInstance(WebdriverManager.class); this.clock = injector.getInstance(SystemClock.class); this.configuration = injector.getInstance(Configuration.class); this.screenshotProcessor = injector.getInstance(ScreenshotProcessor.class); }
public BaseStepListener(final File outputDirectory, Injector injector) { this.proxyFactory = WebdriverProxyFactory.getFactory(); this.testOutcomes = new ArrayList<>(); this.currentStepStack = new Stack<>(); this.currentGroupStack = new Stack<>(); this.outputDirectory = outputDirectory; this.storywideIssues = new ArrayList<>(); this.storywideTags = new ArrayList<>(); //this.webdriverManager = injector.getInstance(WebdriverManager.class); this.clock = injector.getInstance(SystemClock.class); this.configuration = injector.getInstance(Configuration.class); //this.screenshotProcessor = injector.getInstance(ScreenshotProcessor.class); this.closeBrowsers = WebDriverInjectors.getInjector().getInstance(CloseBrowser.class); }
public WebDriver getProxiedDriver() { if (proxiedWebDriver == null) { proxiedWebDriver = newProxyDriver(); WebdriverProxyFactory.getFactory().notifyListenersOfWebdriverCreationIn(this); } return proxiedWebDriver; }
public WebDriver getProxiedDriver() { if (proxiedWebDriver == null) { proxiedWebDriver = newProxyDriver(); WebdriverProxyFactory.getFactory().notifyListenersOfWebdriverCreationIn(this); } return proxiedWebDriver; }
/** * 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); }
public SmartAjaxElementLocator(Clock clock, SearchContext searchContext, Field field, MobilePlatform platform, Integer defaultTimeoutInSeconds) { super(searchContext, field, platform); this.timeOutInSeconds = defaultTimeoutInSeconds; this.annotatedTimeoutInSeconds = timeoutFrom(field); this.clock = clock; this.field = field; if (searchContext instanceof WebDriverFacade) { if (annotatedTimeoutInSeconds.isPresent()) { this.searchContext = ((WebDriverFacade) searchContext) .withTimeoutOf(new Duration(annotatedTimeoutInSeconds.get(), TimeUnit.SECONDS)); } else { this.searchContext = searchContext; } } else if (searchContext instanceof WebElementFacade) { if (annotatedTimeoutInSeconds.isPresent()) { this.searchContext = ((WebElementFacade) searchContext).withTimeoutOf(annotatedTimeoutInSeconds.get(), TimeUnit.SECONDS); } else { this.searchContext = searchContext; } } else if (searchContext instanceof WebDriver) { this.searchContext = WebdriverProxyFactory.getFactory().proxyFor((WebDriver) searchContext); } else { this.searchContext = searchContext; } this.platform = platform; }
/** * 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); }
public WebDriver getProxiedDriver() { if (proxiedWebDriver == null) { proxiedWebDriver = newProxyDriver(); WebdriverProxyFactory.getFactory().notifyListenersOfWebdriverCreationIn(this); } ThucydidesWebDriverSupport.initialize(); ThucydidesWebDriverSupport.getWebdriverManager().setCurrentDriver(this); return proxiedWebDriver; }