We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed41246 commit 0d4fdc5Copy full SHA for 0d4fdc5
dotnet/src/webdriver/Firefox/FirefoxDriverService.cs
@@ -200,7 +200,7 @@ public static FirefoxDriverService CreateDefaultService(string driverPath)
200
if (File.Exists(driverPath))
201
{
202
fileName = Path.GetFileName(driverPath);
203
- driverPath = Path.GetDirectoryName(driverPath)!;
+ driverPath = Path.GetDirectoryName(driverPath) ?? throw new ArgumentException("Driver file exists but parent directory is unreachable", nameof(driverPath));
204
}
205
else
206
0 commit comments