public PooledWebDriverFactoryOptions(IWebDriverFactoryOptions options)
 {
     AutoUpdateEnabled = options.AutoUpdateEnabled;
     DefaultWebBrowser = options.DefaultWebBrowser;
     KillWebDriverProcessesOnDispose = options.KillWebDriverProcessesOnDispose;
     WebDriverDirectoryPath          = options.WebDriverDirectoryPath;
 }
 public EdgeWebDriverFactory(IHttpWebRequestFactory webRequestFactory, IWebDriverOptions webDriverOptions, IWebDriverFactoryOptions webDriverFactoryOptions) :
     base(WebBrowserId.Edge, webRequestFactory, webDriverOptions, webDriverFactoryOptions)
 {
 }
 public EdgeWebDriverFactory(IWebDriverOptions webDriverOptions, IWebDriverFactoryOptions webDriverFactoryOptions) :
     this(new HttpWebRequestFactory(), webDriverOptions, webDriverFactoryOptions)
 {
 }
 public EdgeWebDriverFactory(IWebDriverFactoryOptions webDriverFactoryOptions) :
     this(WebDriverOptions.Default, webDriverFactoryOptions)
 {
 }
Exemple #5
0
        public WebDriverFactory(IHttpWebRequestFactory webRequestFactory, IWebDriverOptions webDriverOptions, IWebDriverFactoryOptions webDriverFactoryOptions)
        {
            if (webDriverOptions is null)
            {
                throw new ArgumentNullException(nameof(webDriverOptions));
            }

            if (webDriverFactoryOptions is null)
            {
                throw new ArgumentNullException(nameof(webDriverFactoryOptions));
            }

            if (webRequestFactory is null)
            {
                throw new ArgumentNullException(nameof(webRequestFactory));
            }

            this.webRequestFactory       = webRequestFactory;
            this.webDriverOptions        = webDriverOptions;
            this.webDriverFactoryOptions = webDriverFactoryOptions;
        }
Exemple #6
0
 public WebDriverFactory(IWebDriverOptions webDriverOptions, IWebDriverFactoryOptions webDriverFactoryOptions) :
     this(HttpWebRequestFactory.Default, webDriverOptions, webDriverFactoryOptions)
 {
 }
Exemple #7
0
 protected WebDriverFactoryBase(WebBrowserId webBrowserId, IHttpWebRequestFactory httpWebRequestFactory, IWebDriverOptions webDriverOptions, IWebDriverFactoryOptions webDriverFactoryOptions)
 {
     this.webBrowserId            = webBrowserId;
     this.httpWebRequestFactory   = httpWebRequestFactory;
     this.webDriverOptions        = webDriverOptions;
     this.webDriverFactoryOptions = webDriverFactoryOptions;
 }
Exemple #8
0
 public FirefoxWebDriverFactory(IHttpWebRequestFactory webRequestFactory, IWebDriverOptions webDriverOptions, IWebDriverFactoryOptions webDriverFactoryOptions) :
     base(WebBrowserId.Firefox, webRequestFactory, webDriverOptions, webDriverFactoryOptions)
 {
 }
Exemple #9
0
 public FirefoxWebDriverFactory(IWebDriverFactoryOptions webDriverFactoryOptions) :
     this(WebDriverOptions.Default, webDriverFactoryOptions)
 {
 }