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; }
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; }
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; }
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; }
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; }
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; }
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); }
internal BrowserWindow(SessionConfiguration sessionConfiguration, ElementFinder elementFinder, IDriver driver, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy) : base(sessionConfiguration, elementFinder, driver, timingStrategy, waiter, urlBuilder, disambiguationStrategy) { }
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; }
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; }
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; }
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; }
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; }
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 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 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); }
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); } }
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)); }
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 BrowserWindow(SessionConfiguration SessionConfiguration, ElementFinder elementFinder, Driver driver, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy) : base(SessionConfiguration, elementFinder, driver, timingStrategy, waiter, urlBuilder, disambiguationStrategy) { }