@@ -24,9 +24,17 @@ public virtual string GetUrl32()
2424 public virtual string GetUrl64 ( )
2525 {
2626#if NETSTANDARD
27- return RuntimeInformation . IsOSPlatform ( OSPlatform . OSX )
28- ? $ "{ BaseVersionPatternUrl } edgedriver_mac64.zip"
29- : $ "{ BaseVersionPatternUrl } edgedriver_win64.zip";
27+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
28+ {
29+ return $ "{ BaseVersionPatternUrl } edgedriver_mac64.zip";
30+ }
31+
32+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
33+ {
34+ return $ "{ BaseVersionPatternUrl } edgedriver_linux64.zip";
35+ }
36+
37+ return $ "{ BaseVersionPatternUrl } edgedriver_win64.zip";
3038#else
3139 return $ "{ BaseVersionPatternUrl } edgedriver_win64.zip";
3240#endif
@@ -35,9 +43,12 @@ public virtual string GetUrl64()
3543 public virtual string GetBinaryName ( )
3644 {
3745#if NETSTANDARD
38- return RuntimeInformation . IsOSPlatform ( OSPlatform . OSX )
39- ? "msedgedriver"
40- : "msedgedriver.exe" ;
46+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) || RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
47+ {
48+ return "msedgedriver" ;
49+ }
50+
51+ return "msedgedriver.exe" ;
4152#else
4253 return "msedgedriver.exe" ;
4354#endif
@@ -74,6 +85,11 @@ public string GetMatchingBrowserVersion()
7485 return RegistryHelper . GetInstalledBrowserVersionOsx ( "Microsoft Edge" , "--version" ) ;
7586 }
7687
88+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
89+ {
90+ return RegistryHelper . GetInstalledBrowserVersionLinux ( "microsoft-edge" , "--version" ) ;
91+ }
92+
7793 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
7894 {
7995 return RegistryHelper . GetInstalledBrowserVersionWin ( "msedge.exe" ) ;
0 commit comments