We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fee675 commit 9ff1fe2Copy full SHA for 9ff1fe2
dotnet/src/webdriver/SeleniumManager.cs
@@ -104,20 +104,18 @@ public static string DriverPath(DriverOptions options)
104
}
105
106
Dictionary<string, object> output = RunCommand(BinaryFullPath, argsBuilder.ToString());
107
- string browserPath = (string)output["browser_path"];
108
- string driverPath = (string)output["driver_path"];
109
110
try
111
{
112
- options.BinaryLocation = browserPath;
+ options.BinaryLocation = (string)output["browser_path"] == "" ? null : (string)output["browser_path"];
113
options.BrowserVersion = null;
114
115
catch (NotImplementedException)
116
117
// Cannot set Browser Location for this driver and that is ok
118
119
120
- return driverPath;
+ return (string)output["driver_path"];
121
122
123
/// <summary>
0 commit comments