Skip to content

Commit

Permalink
Enabling tests for Chromium-based Edge in .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jun 13, 2019
1 parent 3e1d085 commit ea975d2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dotnet/test/common/CustomDriverConfigs/ChromiumEdgeDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace OpenQA.Selenium.Edge
{
public class ChromiumEdgeDriver : EdgeDriver
{
private static string servicePath = string.Empty;

public ChromiumEdgeDriver()
: this(DefaultService, DefaultOptions)
{
Expand All @@ -20,16 +22,22 @@ public ChromiumEdgeDriver(EdgeDriverService service, EdgeOptions options)

public static EdgeOptions DefaultOptions
{
get { return new EdgeOptions(false) { UseSpecCompliantProtocol = true }; }
get { return new EdgeOptions(false) { BinaryLocation = @"C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe" }; }
}

public static EdgeDriverService DefaultService
{
get
{
EdgeDriverService service = EdgeDriverService.CreateDefaultService(false);
EdgeDriverService service = EdgeDriverService.CreateDefaultService(ServicePath, false);
return service;
}
}

public static string ServicePath
{
get { return servicePath; }
set { servicePath = value; }
}
}
}

0 comments on commit ea975d2

Please sign in to comment.