Skip to content

Commit

Permalink
Add constructor overload which takes in single DriverService parameter
Browse files Browse the repository at this point in the history
This pattern was already implemented in PhantomJSDriver, but not yet
in ChromeDriver and InternetExplorerDriver.

Signed-off-by: Jim Evans <james.h.evans.jr@gmail.com>
  • Loading branch information
yizeng authored and jimevans committed Mar 26, 2015
1 parent 9b4ec3b commit dfb5446
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dotnet/src/webdriver/Chrome/ChromeDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ public ChromeDriver(ChromeOptions options)
{
}

/// <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())
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified path
/// to the directory containing ChromeDriver.exe.
Expand Down
9 changes: 9 additions & 0 deletions dotnet/src/webdriver/IE/InternetExplorerDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ public InternetExplorerDriver(InternetExplorerOptions options)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="InternetExplorerDriver"/> class using the specified driver service.
/// </summary>
/// <param name="service">The <see cref="InternetExplorerDriverService"/> used to initialize the driver.</param>
public InternetExplorerDriver(InternetExplorerDriverService service)
: this(service, new InternetExplorerOptions())
{
}

/// <summary>
/// Initializes a new instance of the <see cref="InternetExplorerDriver"/> class using the specified path
/// to the directory containing IEDriverServer.exe.
Expand Down

0 comments on commit dfb5446

Please sign in to comment.