-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWebDriverUpdaterOptions.cs
More file actions
35 lines (22 loc) · 921 Bytes
/
WebDriverUpdaterOptions.cs
File metadata and controls
35 lines (22 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Gsemac.Net.WebBrowsers;
using System;
namespace Gsemac.Net.WebDrivers {
public class WebDriverUpdaterOptions :
IWebDriverUpdaterOptions {
// Public members
public WebBrowserId WebBrowserId { get; set; } = WebBrowserId.Unknown;
public string WebDriverDirectoryPath { get; set; }
public static WebDriverUpdaterOptions Default => new WebDriverUpdaterOptions();
public WebDriverUpdaterOptions() {
}
public WebDriverUpdaterOptions(string webDriverDirectory) {
WebDriverDirectoryPath = webDriverDirectory;
}
public WebDriverUpdaterOptions(IWebDriverUpdaterOptions options) {
if (options is null)
throw new ArgumentNullException(nameof(options));
WebBrowserId = options.WebBrowserId;
WebDriverDirectoryPath = options.WebDriverDirectoryPath;
}
}
}