コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified driver service.
 /// </summary>
 /// <param name="service">The <see cref="ChromeDriverService"/> used to initialize the driver.</param>
 public ChromeDriver(ChromeDriverService service)
     : this(service, new ChromeOptions())
 {
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified options.
 /// </summary>
 /// <param name="options">The <see cref="ChromeOptions"/> to be used with the Chrome driver.</param>
 public ChromeDriver(ChromeOptions options)
     : this(ChromeDriverService.CreateDefaultService(), options, RemoteWebDriver.DefaultCommandTimeout)
 {
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified
 /// <see cref="ChromeDriverService"/> and options.
 /// </summary>
 /// <param name="service">The <see cref="ChromeDriverService"/> to use.</param>
 /// <param name="options">The <see cref="ChromeOptions"/> used to initialize the driver.</param>
 public ChromeDriver(ChromeDriverService service, ChromeOptions options)
     : this(service, options, RemoteWebDriver.DefaultCommandTimeout)
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified <see cref="ChromeDriverService"/>.
 /// </summary>
 /// <param name="service">The <see cref="ChromeDriverService"/> to use.</param>
 /// <param name="options">The <see cref="ChromeOptions"/> to be used with the Chrome driver.</param>
 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
 public ChromeDriver(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
     : base(new DriverServiceCommandExecutor(service, commandTimeout), options.ToCapabilities())
 {
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified path
 /// to the directory containing ChromeDriver.exe, options, and command timeout.
 /// </summary>
 /// <param name="chromeDriverDirectory">The full path to the directory containing ChromeDriver.exe.</param>
 /// <param name="options">The <see cref="ChromeOptions"/> to be used with the Chrome driver.</param>
 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
 public ChromeDriver(string chromeDriverDirectory, ChromeOptions options, TimeSpan commandTimeout)
     : this(ChromeDriverService.CreateDefaultService(chromeDriverDirectory), options, commandTimeout)
 {
 }