-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
93 additions
and
41 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
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
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
6 changes: 4 additions & 2 deletions
6
src/Tests/Riganti.Selenium.Core.Samples.Assert.Tests/seleniumconfig.json
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
5 changes: 4 additions & 1 deletion
5
src/Tests/Riganti.Selenium.Core.Samples.Tests/Profiles/seleniumconfig.chrome.json
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
36 changes: 36 additions & 0 deletions
36
src/Tests/Riganti.Selenium.Core.Samples.Tests/SeleniumManagerTests.cs
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,36 @@ | ||
using System; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Newtonsoft.Json; | ||
using OpenQA.Selenium; | ||
|
||
[TestClass] | ||
public class SeleniumManagerTests | ||
{ | ||
[TestMethod] | ||
public void GetBinariesVersion113() | ||
{ | ||
var data1 = SeleniumManager.BinaryPaths("--browser firefox --driver geckodriver --browser-version 113"); | ||
Console.WriteLine("Firefox binaries: " + JsonConvert.SerializeObject(data1)); | ||
Assert.IsNotNull(data1["browser_path"]); | ||
Assert.IsNotNull(data1["driver_path"]); | ||
|
||
var data2 = SeleniumManager.BinaryPaths("--browser chrome --driver chromedriver --browser-version 113"); | ||
Console.WriteLine("Chrome binaries: " + JsonConvert.SerializeObject(data2)); | ||
Assert.IsNotNull(data2["browser_path"]); | ||
Assert.IsNotNull(data2["driver_path"]); | ||
} | ||
|
||
[TestMethod] | ||
public void GetBinariesVersionStable() | ||
{ | ||
var data1 = SeleniumManager.BinaryPaths("--browser firefox --driver geckodriver --browser-version stable"); | ||
Console.WriteLine("Firefox binaries: " + JsonConvert.SerializeObject(data1)); | ||
Assert.IsNotNull(data1["browser_path"]); | ||
Assert.IsNotNull(data1["driver_path"]); | ||
|
||
var data2 = SeleniumManager.BinaryPaths("--browser chrome --driver chromedriver --browser-version stable"); | ||
Console.WriteLine("Chrome binaries: " + JsonConvert.SerializeObject(data2)); | ||
Assert.IsNotNull(data2["browser_path"]); | ||
Assert.IsNotNull(data2["driver_path"]); | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/Tests/Riganti.Selenium.Core.UnitTests/SeleniumManagerTests.cs
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,22 @@ | ||
using System; | ||
using System.Text.Json; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using OpenQA.Selenium; | ||
|
||
[TestClass] | ||
public class SeleniumManagerTests | ||
{ | ||
[TestMethod] | ||
public void GetBinaries() | ||
{ | ||
var data1 = SeleniumManager.BinaryPaths("--browser firefox --driver geckodriver --browser-version 104"); | ||
Console.WriteLine("Firefox binaries: " + JsonSerializer.Serialize(data1)); | ||
Assert.IsNotNull(data1["browser_path"]); | ||
Assert.IsNotNull(data1["driver_path"]); | ||
|
||
var data2 = SeleniumManager.BinaryPaths("--browser chrome --driver chromedriver --browser-version 104"); | ||
Console.WriteLine("Chrome binaries: " + JsonSerializer.Serialize(data2)); | ||
Assert.IsNotNull(data2["browser_path"]); | ||
Assert.IsNotNull(data2["driver_path"]); | ||
} | ||
} |
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