Skip to content

Commit

Permalink
Fix edge driver download for linux and macos systems. Release 2.17.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rosolko committed Dec 18, 2024
1 parent 2caceef commit 26f923c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ namespace WebDriverManager.DriverConfigs.Impl
public class EdgeConfig : IDriverConfig
{
private const string BaseVersionPatternUrl = "https://msedgedriver.azureedge.net/<version>/";
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()
{
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions WebDriverManager/WebDriverManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<TargetFrameworks>net472;netstandard2.0;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.17.4</Version>
<Version>2.17.5</Version>
<Title>WebDriverManager.Net</Title>
<Description>Automatic Selenium WebDriver binaries management for .Net</Description>
<Copyright>© 2016-2024, Aliaksandr Rasolka. All Rights Reserved.</Copyright>
Expand All @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>Selenium WebDriver ChromeDriver EdgeDriver InternetExplorerDriver FirefoxDriver OperaDriver PhantomJsDriver</PackageTags>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageReleaseNotes>Fix edge driver download for linux and macos systems</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 26f923c

Please sign in to comment.