From 26f923c30a2526c311a442eba9b5020528533c2c Mon Sep 17 00:00:00 2001 From: Aliaksandr Rasolka Date: Wed, 18 Dec 2024 23:36:03 +0300 Subject: [PATCH] Fix edge driver download for linux and macos systems. Release 2.17.5 --- WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs | 8 ++++++-- WebDriverManager/WebDriverManager.csproj | 4 ++-- appveyor.yml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs b/WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs index de30890..3a4c2ca 100644 --- a/WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs +++ b/WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs @@ -9,7 +9,8 @@ namespace WebDriverManager.DriverConfigs.Impl public class EdgeConfig : IDriverConfig { private const string BaseVersionPatternUrl = "https://msedgedriver.azureedge.net//"; - private const string LatestReleaseVersionUrl = "https://msedgedriver.azureedge.net/LATEST_STABLE"; + private const string LatestStableReleaseVersionUrl = "https://msedgedriver.azureedge.net/LATEST_STABLE"; + private const string LatestBetaReleaseVersionUrl = "https://msedgedriver.azureedge.net/LATEST_BETA"; public virtual string GetName() { @@ -60,7 +61,10 @@ public virtual string GetBinaryName() public virtual string GetLatestVersion() { - return GetLatestVersion(LatestReleaseVersionUrl); + var url = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + ? LatestStableReleaseVersionUrl + : LatestBetaReleaseVersionUrl; + return GetLatestVersion(url); } public virtual string GetLatestVersion(string url) diff --git a/WebDriverManager/WebDriverManager.csproj b/WebDriverManager/WebDriverManager.csproj index aed848f..d745dfe 100644 --- a/WebDriverManager/WebDriverManager.csproj +++ b/WebDriverManager/WebDriverManager.csproj @@ -4,7 +4,7 @@ false net472;netstandard2.0;netstandard2.1 true - 2.17.4 + 2.17.5 WebDriverManager.Net Automatic Selenium WebDriver binaries management for .Net © 2016-2024, Aliaksandr Rasolka. All Rights Reserved. @@ -14,7 +14,7 @@ git README.md Selenium WebDriver ChromeDriver EdgeDriver InternetExplorerDriver FirefoxDriver OperaDriver PhantomJsDriver - + Fix edge driver download for linux and macos systems diff --git a/appveyor.yml b/appveyor.yml index 7681a53..4c965ea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ version: '{build}' image: Visual Studio 2019 environment: - LIBRARY_VERSION: '2.17.4' + LIBRARY_VERSION: '2.17.5' SONAR_LOGIN: secure: JNopXLZtkO5PD8yEj2+W1BZnbhq9oegXmTFgvVWQw67z5PtWwd+ngjv5O7xFetCZ