示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultChromeDriver" /> class.
 /// </summary>
 /// <param name="driverPath">The driver path.</param>
 /// <param name="windowMode">The window mode.</param>
 /// <exception cref="ArgumentNullException">driverPath</exception>
 public DefaultChromeDriver(AutomationDriverOptions options)
     : base(options)
 {
     SeleniumWebDriver = new ChromeDriver(options.DriverPath);
     SeleniumWebDriver.Manage().Window.SetWindowMode(options.WindowMode);
 }