-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of legacy (non chromium) edge
- Loading branch information
Showing
5 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Text.RegularExpressions; | ||
using WebDriverManager.DriverConfigs.Impl; | ||
using Xunit; | ||
|
||
namespace WebDriverManager.Tests | ||
{ | ||
public class LegacyEdgeConfigTests : LegacyEdgeConfig | ||
{ | ||
[Fact] | ||
public void VersionTest() | ||
{ | ||
var version = GetLatestVersion(); | ||
var regex = new Regex(@"^\d+\.\d+$"); | ||
Assert.NotEmpty(version); | ||
Assert.Matches(regex, version); | ||
} | ||
|
||
[Fact] | ||
public void DriverDownloadTest() | ||
{ | ||
new DriverManager().SetUpDriver(new LegacyEdgeConfig()); | ||
Assert.NotEmpty(WebDriverFinder.FindFile(GetBinaryName())); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace WebDriverManager.DriverConfigs.Impl | ||
{ | ||
public class LegacyEdgeConfig : IDriverConfig | ||
{ | ||
public virtual string GetName() | ||
{ | ||
return "Edge"; | ||
} | ||
|
||
public virtual string GetUrl32() | ||
{ | ||
return | ||
"https://download.microsoft.com/download/F/8/A/F8AF50AB-3C3A-4BC4-8773-DC27B32988DD/MicrosoftWebDriver.exe"; | ||
} | ||
|
||
public virtual string GetUrl64() | ||
{ | ||
return GetUrl32(); | ||
} | ||
|
||
public virtual string GetBinaryName() | ||
{ | ||
return "MicrosoftWebDriver.exe"; | ||
} | ||
|
||
public virtual string GetLatestVersion() | ||
{ | ||
return "6.17134"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters