From ea975d2ac5fb48e5219a9386783c535fd5071475 Mon Sep 17 00:00:00 2001 From: Jim Evans Date: Thu, 13 Jun 2019 10:33:14 -0700 Subject: [PATCH] Enabling tests for Chromium-based Edge in .NET --- .../common/CustomDriverConfigs/ChromiumEdgeDriver.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; } + } } }