Skip to content

Commit 8636b15

Browse files
committed
Throw if not supported
1 parent da351d4 commit 8636b15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dotnet/src/webdriver/SeleniumManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ public static class SeleniumManager
7777
}
7878
#endif
7979

80+
if (platform is null)
81+
{
82+
throw new PlatformNotSupportedException($"Selenium Manager doesn't support your runtime platform: {RuntimeInformation.OSDescription}");
83+
}
84+
8085
var currentDirectory = AppContext.BaseDirectory;
8186

8287
binaryFullPath = platform switch

0 commit comments

Comments
 (0)