diff --git a/dotnet/test/common/Environment/DriverFactory.cs b/dotnet/test/common/Environment/DriverFactory.cs index edee6ae9cc1c2..371df75d4f1f4 100644 --- a/dotnet/test/common/Environment/DriverFactory.cs +++ b/dotnet/test/common/Environment/DriverFactory.cs @@ -46,7 +46,7 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO browser = Browser.Chrome; options = GetDriverOptions(driverType, driverOptions); } - if (typeof(EdgeDriver).IsAssignableFrom(driverType)) + else if (typeof(EdgeDriver).IsAssignableFrom(driverType)) { browser = Browser.Edge; options = GetDriverOptions(driverType, driverOptions);