Exemple #1
0
        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));
        }
Exemple #2
0
 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);
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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);
 }
Exemple #6
0
 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);
 }
Exemple #8
0
 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;
 }
Exemple #9
0
 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;
 }
Exemple #10
0
 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));
 }