예제 #1
0
 internal WaitThenClick(Driver driver, DriverScope scope, Options options, Waiter waiter, ElementFinder elementFinder, DisambiguationStrategy disambiguationStrategy)
     : base(driver, scope, options)
 {
     waitBeforeClick             = options.WaitBeforeClick;
     this.waiter                 = waiter;
     this.elementFinder          = elementFinder;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #2
0
 internal WaitThenClick(Driver driver, Options options, Waiter waiter, ElementFinder elementFinder, DisambiguationStrategy disambiguationStrategy)
     : base(driver, options)
 {
     waitBeforeClick = options.WaitBeforeClick;
     this.waiter = waiter;
     this.elementFinder = elementFinder;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #3
0
파일: Select.cs 프로젝트: JamieBenson/coypu
 internal Select(Driver driver, DriverScope scope, string locator, string optionToSelect, DisambiguationStrategy disambiguationStrategy, Options options)
     : base(driver, scope, options)
 {
     this.locator = locator;
     this.optionToSelect = optionToSelect;
     this.options = options;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #4
0
 internal Select(Driver driver, ElementScope selectElement, string optionToSelect, DisambiguationStrategy disambiguationStrategy, Options options)
     : base(driver, selectElement, options)
 {
     this.selectElement          = selectElement;
     this.optionToSelect         = optionToSelect;
     this.options                = options;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #5
0
 internal Select(Driver driver, DriverScope scope, string locator, string optionToSelect, DisambiguationStrategy disambiguationStrategy, Options options)
     : base(driver, scope, options)
 {
     this.locator                = locator;
     this.optionToSelect         = optionToSelect;
     this.options                = options;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #6
0
파일: Select.cs 프로젝트: JamieBenson/coypu
 internal Select(Driver driver, ElementScope selectElement, string optionToSelect, DisambiguationStrategy disambiguationStrategy, Options options)
     : base(driver, selectElement, options)
 {
     this.selectElement = selectElement;
     this.optionToSelect = optionToSelect;
     this.options = options;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #7
0
파일: SelectFrom.cs 프로젝트: hnhan/coypu
 internal SelectFrom(string option, Driver driver, TimingStrategy timingStrategy, DriverScope scope, Options options, DisambiguationStrategy disambiguationStrategy)
 {
     this.option                 = option;
     this.driver                 = driver;
     this.timingStrategy         = timingStrategy;
     this.scope                  = scope;
     this.options                = options;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #8
0
파일: SelectFrom.cs 프로젝트: hnhan/coypu
 internal SelectFrom(string option, Driver driver, TimingStrategy timingStrategy, DriverScope scope, Options options, DisambiguationStrategy disambiguationStrategy)
 {
     this.option = option;
     this.driver = driver;
     this.timingStrategy = timingStrategy;
     this.scope = scope;
     this.options = options;
     this.disambiguationStrategy = disambiguationStrategy;
 }
예제 #9
0
 internal Select(IDriver driver,
                 DriverScope scope,
                 string locator,
                 string optionToSelect,
                 DisambiguationStrategy disambiguationStrategy,
                 Options options,
                 Options fromOptions) : this(driver, scope, locator, optionToSelect, disambiguationStrategy, options)
 {
     _fromOptions = fromOptions;
 }
예제 #10
0
 internal DriverScope(SessionConfiguration sessionConfiguration, ElementFinder elementFinder, Driver driver, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy)
 {
     this.elementFinder        = elementFinder ?? new DocumentElementFinder(driver, sessionConfiguration);
     this.SessionConfiguration = sessionConfiguration;
     this.driver                 = driver;
     this.timingStrategy         = timingStrategy;
     this.waiter                 = waiter;
     this.urlBuilder             = urlBuilder;
     this.DisambiguationStrategy = disambiguationStrategy;
     stateFinder                 = new StateFinder(timingStrategy);
 }
예제 #11
0
 internal BrowserWindow(SessionConfiguration sessionConfiguration,
                        ElementFinder elementFinder,
                        IDriver driver,
                        TimingStrategy timingStrategy,
                        Waiter waiter,
                        UrlBuilder urlBuilder,
                        DisambiguationStrategy disambiguationStrategy)
     : base(sessionConfiguration, elementFinder, driver, timingStrategy, waiter, urlBuilder,
            disambiguationStrategy)
 {
 }
예제 #12
0
 internal Select(IDriver driver,
                 DriverScope scope,
                 string locator,
                 string optionToSelect,
                 DisambiguationStrategy disambiguationStrategy,
                 Options options) : base(driver, scope, options)
 {
     _locator                = locator;
     _optionToSelect         = optionToSelect;
     _options                = options;
     _disambiguationStrategy = disambiguationStrategy;
 }
예제 #13
0
 internal DriverScope(ElementFinder elementFinder, DriverScope outerScope)
 {
     this.elementFinder     = elementFinder;
     this.outerScope        = outerScope;
     driver                 = outerScope.driver;
     timingStrategy         = outerScope.timingStrategy;
     urlBuilder             = outerScope.urlBuilder;
     DisambiguationStrategy = outerScope.DisambiguationStrategy;
     stateFinder            = outerScope.stateFinder;
     waiter                 = outerScope.waiter;
     SessionConfiguration   = outerScope.SessionConfiguration;
 }
예제 #14
0
 internal DriverScope(ElementFinder elementFinder,
                      DriverScope outerScope)
 {
     _driver                = outerScope._driver;
     _elementFinder         = elementFinder;
     DisambiguationStrategy = outerScope.DisambiguationStrategy;
     OuterScope             = outerScope;
     SessionConfiguration   = outerScope.SessionConfiguration;
     StateFinder            = outerScope.StateFinder;
     TimingStrategy         = outerScope.TimingStrategy;
     UrlBuilder             = outerScope.UrlBuilder;
     Waiter = outerScope.Waiter;
 }
예제 #15
0
 internal SelectFrom(string option,
                     IDriver driver,
                     TimingStrategy timingStrategy,
                     DriverScope scope,
                     Options options,
                     DisambiguationStrategy disambiguationStrategy)
 {
     _option                 = option;
     _driver                 = driver;
     _timingStrategy         = timingStrategy;
     _scope                  = scope;
     _options                = options;
     _disambiguationStrategy = disambiguationStrategy;
 }
예제 #16
0
 internal DriverScope(SessionConfiguration sessionConfiguration,
                      ElementFinder elementFinder,
                      IDriver driver,
                      TimingStrategy timingStrategy,
                      Waiter waiter,
                      UrlBuilder urlBuilder,
                      DisambiguationStrategy disambiguationStrategy)
 {
     _driver                = driver;
     _elementFinder         = elementFinder ?? new DocumentElementFinder(driver, sessionConfiguration);
     DisambiguationStrategy = disambiguationStrategy;
     SessionConfiguration   = sessionConfiguration;
     StateFinder            = new StateFinder(timingStrategy);
     TimingStrategy         = timingStrategy;
     UrlBuilder             = urlBuilder;
     Waiter = waiter;
 }
예제 #17
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;
 }
예제 #18
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;
 }
예제 #19
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(sessionConfiguration, 
                     new StubDriverFactory(driver), 
                     timingStrategy, 
                     waiter, 
                     urlBuilder, 
                     disambiguationStrategy,
                     restrictedResourceDownloader);
 }
예제 #20
0
        public virtual void SetScope(DriverScope scope)
        {
            outerScope             = scope;
            driver                 = outerScope.driver;
            timingStrategy         = outerScope.timingStrategy;
            urlBuilder             = outerScope.urlBuilder;
            DisambiguationStrategy = outerScope.DisambiguationStrategy;
            stateFinder            = outerScope.stateFinder;
            waiter                 = outerScope.waiter;
            SessionConfiguration   = outerScope.SessionConfiguration;
            outerScope             = scope;

            if (elementFinder != null)
            {
                elementFinder.SetDriver(driver);
                elementFinder.ChangeScope(scope);
            }
        }
예제 #21
0
        internal static BrowserSession Build(SessionConfiguration sessionConfiguration,
                                             IDriver 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));
        }
예제 #22
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;
 }
예제 #23
0
 internal BrowserWindow(SessionConfiguration SessionConfiguration, ElementFinder elementFinder, Driver driver, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy) 
     : base(SessionConfiguration, elementFinder, driver, timingStrategy, waiter, urlBuilder, disambiguationStrategy)
 {
 }