File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed
WebDriverManager/DriverConfigs/Impl Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ private string GetUrl()
3434#if NETSTANDARD
3535 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
3636 {
37- var extension = RuntimeInformation . ProcessArchitecture == Architecture . Arm64 ? "_m1" : "" ;
38- return $ "{ BaseVersionPatternUrl } chromedriver_mac64{ extension } .zip";
37+ var architectureExtension =
38+ RuntimeInformation . ProcessArchitecture == System . Runtime . InteropServices . Architecture . Arm64
39+ ? "_m1"
40+ : "" ;
41+ return $ "{ BaseVersionPatternUrl } chromedriver_mac64{ architectureExtension } .zip";
3942 }
4043
4144 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
@@ -88,6 +91,7 @@ public virtual string GetMatchingBrowserVersion()
8891 {
8992 throw new Exception ( "Not able to get chrome version or not installed" ) ;
9093 }
94+
9195 var chromeBrowserVersion = VersionHelper . GetVersionWithoutRevision ( rawChromeBrowserVersion ) ;
9296 var url = ExactReleaseVersionPatternUrl . Replace ( "<version>" , chromeBrowserVersion ) ;
9397 return GetLatestVersion ( url ) ;
Original file line number Diff line number Diff line change @@ -26,8 +26,11 @@ public virtual string GetUrl64()
2626#if NETSTANDARD
2727 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
2828 {
29- var extension = RuntimeInformation . ProcessArchitecture == Architecture . Arm64 ? "_m1" : "" ;
30- return $ "{ BaseVersionPatternUrl } edgedriver_mac64{ extension } .zip";
29+ var architectureExtension =
30+ RuntimeInformation . ProcessArchitecture == System . Runtime . InteropServices . Architecture . Arm64
31+ ? "_m1"
32+ : "" ;
33+ return $ "{ BaseVersionPatternUrl } edgedriver_mac64{ architectureExtension } .zip";
3134 }
3235
3336 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ namespace WebDriverManager.DriverConfigs.Impl
1010{
1111 public class FirefoxConfig : IDriverConfig
1212 {
13- private const string DownloadUrl = "https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-" ;
13+ private const string DownloadUrl =
14+ "https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-" ;
1415
1516 public virtual string GetName ( )
1617 {
@@ -81,8 +82,11 @@ private static string GetUrl(Architecture architecture)
8182#if NETSTANDARD
8283 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
8384 {
84- var extension = RuntimeInformation . ProcessArchitecture == Architecture . Arm64 ? "-aarch64" : "" ;
85- return $ "{ DownloadUrl } macos{ extension } .tar.gz";
85+ var architectureExtension =
86+ RuntimeInformation . ProcessArchitecture == System . Runtime . InteropServices . Architecture . Arm64
87+ ? "-aarch64"
88+ : "" ;
89+ return $ "{ DownloadUrl } macos{ architectureExtension } .tar.gz";
8690 }
8791
8892 return RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
You can’t perform that action at this time.
0 commit comments