Skip to content

Commit

Permalink
Adding ability to run .NET tests against Chrome Dev Channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Mar 27, 2019
1 parent f7371cc commit 0ff801a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dotnet/test/chrome/DevChannelChromeDriver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenQA.Selenium.Chrome
{
public class DevChannelChromeDriver : ChromeDriver
{
public DevChannelChromeDriver(ChromeDriverService service)
: this(service, DefaultOptions)
{
}

public DevChannelChromeDriver(ChromeDriverService service, ChromeOptions options)
: base(service, options)
{
}

public static ChromeOptions DefaultOptions
{
get { return new ChromeOptions() { UseSpecCompliantProtocol = true, BinaryLocation = @"C:\Program Files (x86)\Google\Chrome Dev\Application\chrome.exe" }; }
}
}
}
7 changes: 7 additions & 0 deletions dotnet/test/common/appconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
"RemoteCapabilities": "chrome"
},

"ChromeDev": {
"DriverTypeName": "OpenQA.Selenium.Chrome.DevChannelChromeDriver",
"AssemblyName": "WebDriver.Chrome.Tests",
"BrowserValue": "Chrome",
"RemoteCapabilities": "chrome"
},

"IE": {
"DriverTypeName": "OpenQA.Selenium.IE.WindowFocusInternetExplorerDriver",
"AssemblyName": "WebDriver.IE.Tests",
Expand Down

0 comments on commit 0ff801a

Please sign in to comment.