diff --git a/dotnet/test/common/CustomDriverConfigs/ChromiumEdgeDriver.cs b/dotnet/test/common/CustomDriverConfigs/ChromiumEdgeDriver.cs index 870221d00a37c..39978bbb8dbcb 100644 --- a/dotnet/test/common/CustomDriverConfigs/ChromiumEdgeDriver.cs +++ b/dotnet/test/common/CustomDriverConfigs/ChromiumEdgeDriver.cs @@ -8,6 +8,8 @@ namespace OpenQA.Selenium.Edge { public class ChromiumEdgeDriver : EdgeDriver { + private static string servicePath = string.Empty; + public ChromiumEdgeDriver() : this(DefaultService, DefaultOptions) { @@ -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; } + } } }