-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
Kudos, SonarCloud Quality Gate passed! |
Add additional unit tests to load all browsers and validate functionality on SeleniumConfig tests |
…om/Magenic/MAQS into feature/JacobFerm/WebDriverManager
…om/Magenic/MAQS into feature/JacobFerm/WebDriverManager
…om/Magenic/MAQS into feature/JacobFerm/WebDriverManager
@@ -223,6 +230,7 @@ public static IWebDriver GetFirefoxDriver(TimeSpan commandTimeout, FirefoxOption | |||
{ | |||
return CreateDriver(() => | |||
{ | |||
new DriverManager().SetUpDriver(new FirefoxConfig()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to do this every single time we create a new driver?
Feels like we could just do it once.
I see 2 problems with this implementation.
- We pay a small cost for every single test
- If the remote gecko host (AKA where WebDriverManager downloads the driver from) goes done at any point in our test run we will likely start failing tests.
@@ -248,6 +256,7 @@ public static IWebDriver GetEdgeDriver(TimeSpan commandTimeout, EdgeOptions edge | |||
{ | |||
return CreateDriver(() => | |||
{ | |||
new DriverManager().SetUpDriver(new EdgeConfig()); | |||
var driver = new EdgeDriver(GetDriverLocation("MicrosoftWebDriver.exe", GetProgramFilesFolder("Microsoft Web Driver", "MicrosoftWebDriver.exe")), edgeOptions, commandTimeout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work nicely outside windows.
Think :
var driver = new EdgeDriver(EdgeDriverService.CreateChromiumService() , edgeOptions, commandTimeout);
may work better.
Kudos, SonarCloud Quality Gate passed! |
Closes #781
Closes #680