internal static BrowserSession Build(SessionConfiguration SessionConfiguration, Driver driver, TimingStrategy timingStrategy, Waiter waiter, RestrictedResourceDownloader restrictedResourceDownloader, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy = null) { disambiguationStrategy = disambiguationStrategy ?? new FirstOrDefaultNoDisambiguationStrategy(); return(new BrowserSession(new StubDriverFactory(driver), SessionConfiguration, timingStrategy, waiter, restrictedResourceDownloader, urlBuilder, disambiguationStrategy)); }
internal Session(Driver driver, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader _restrictedResourceDownloader, UrlBuilder urlBuilder) { this.driver = driver; this.robustWrapper = robustWrapper; this.restrictedResourceDownloader = _restrictedResourceDownloader; clicker = new Clicker(driver, waiter); this.urlBuilder = urlBuilder; temporaryTimeouts = new TemporaryTimeouts(); stateFinder = new StateFinder(robustWrapper, temporaryTimeouts); }
internal BrowserSession(SessionConfiguration sessionConfiguration, IDriver driver, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy, RestrictedResourceDownloader restrictedResourceDownloader) : base(sessionConfiguration, null, driver, timingStrategy, waiter, urlBuilder, disambiguationStrategy) { _restrictedResourceDownloader = restrictedResourceDownloader; }
internal BrowserSession(SessionConfiguration sessionConfiguration, DriverFactory driverFactory, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy, RestrictedResourceDownloader restrictedResourceDownloader) : base(sessionConfiguration, null, driverFactory.NewWebDriver(sessionConfiguration.Driver, sessionConfiguration.Browser), timingStrategy, waiter, urlBuilder, disambiguationStrategy) { _restrictedResourceDownloader = restrictedResourceDownloader; }
internal static BrowserSession Build(SessionConfiguration sessionConfiguration, Driver driver, TimingStrategy timingStrategy, Waiter waiter, RestrictedResourceDownloader restrictedResourceDownloader, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy = null) { disambiguationStrategy = disambiguationStrategy ?? new FirstOrDefaultNoDisambiguationStrategy(); return new BrowserSession(sessionConfiguration, new StubDriverFactory(driver), timingStrategy, waiter, urlBuilder, disambiguationStrategy, restrictedResourceDownloader); }
internal BrowserSession( SessionConfiguration sessionConfiguration, DriverFactory driverFactory, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy, RestrictedResourceDownloader restrictedResourceDownloader ) : base(sessionConfiguration, null, driverFactory.NewWebDriver(sessionConfiguration.Driver, sessionConfiguration.Browser), timingStrategy, waiter, urlBuilder, disambiguationStrategy) { this.restrictedResourceDownloader = restrictedResourceDownloader; }
internal static Session Build(Driver driver, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader _restrictedResourceDownloader, UrlBuilder urlBuilder) { return new Session(driver, robustWrapper, waiter, _restrictedResourceDownloader, urlBuilder); }
internal BrowserSession(DriverFactory driver, SessionConfiguration SessionConfiguration, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader restrictedResourceDownloader, UrlBuilder urlBuilder) : base(SessionConfiguration, null, driver.NewWebDriver(SessionConfiguration.Driver, SessionConfiguration.Browser), robustWrapper, waiter, urlBuilder) { this.restrictedResourceDownloader = restrictedResourceDownloader; }
internal static BrowserSession Build(SessionConfiguration SessionConfiguration, Driver driver, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader restrictedResourceDownloader, UrlBuilder urlBuilder) { return(new BrowserSession(new StubDriverFactory(driver), SessionConfiguration, robustWrapper, waiter, restrictedResourceDownloader, urlBuilder)); }
internal static BrowserSession Build(SessionConfiguration SessionConfiguration, Driver driver, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader restrictedResourceDownloader, UrlBuilder urlBuilder) { return new BrowserSession(new StubDriverFactory(driver), SessionConfiguration, robustWrapper, waiter, restrictedResourceDownloader, urlBuilder); }
internal static Session Build(Driver driver, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader _restrictedResourceDownloader, UrlBuilder urlBuilder) { return(new Session(driver, robustWrapper, waiter, _restrictedResourceDownloader, urlBuilder)); }