Skip to content

Commit 26714e5

Browse files
committed
Maintain previous logic
1 parent 8e7b8b2 commit 26714e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/DriverFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public bool TryGetBrowserPath([NotNullWhen(true)] out string? browserPath)
105105
/// <exception cref="NoSuchDriverException">If one of the paths does not exist.</exception>
106106
private SeleniumManagerPaths BinaryPaths()
107107
{
108-
if (paths is not null)
108+
if (paths is not null && !string.IsNullOrWhiteSpace(paths.DriverPath))
109109
{
110110
return paths;
111111
}

0 commit comments

Comments
 (0)