-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding more custom driver configs to .NET tests for Bazel migration
- Loading branch information
Showing
33 changed files
with
191 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ public enum Browser | |
{ | ||
All, | ||
IE, | ||
ChromiumEdge, | ||
Edge, | ||
EdgeLegacy, | ||
Firefox, | ||
Safari, | ||
Chrome, | ||
|
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
35 changes: 35 additions & 0 deletions
35
dotnet/test/common/CustomDriverConfigs/ChromiumEdgeDriver.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,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenQA.Selenium.Edge | ||
{ | ||
public class ChromiumEdgeDriver : EdgeDriver | ||
{ | ||
public ChromiumEdgeDriver() | ||
: this(DefaultService, DefaultOptions) | ||
{ | ||
} | ||
|
||
public ChromiumEdgeDriver(EdgeDriverService service, EdgeOptions options) | ||
: base(service, options) | ||
{ | ||
} | ||
|
||
public static EdgeOptions DefaultOptions | ||
{ | ||
get { return new EdgeOptions(false) { UseSpecCompliantProtocol = true }; } | ||
} | ||
|
||
public static EdgeDriverService DefaultService | ||
{ | ||
get | ||
{ | ||
EdgeDriverService service = EdgeDriverService.CreateDefaultService(false); | ||
return service; | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
dotnet/test/common/CustomDriverConfigs/DefaultEdgeDriver.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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenQA.Selenium.Edge | ||
{ | ||
public class DefaultEdgeDriver : EdgeDriver | ||
{ | ||
public DefaultEdgeDriver() | ||
: this(DefaultService, new EdgeOptions()) | ||
{ | ||
} | ||
|
||
public DefaultEdgeDriver(EdgeDriverService service, EdgeOptions options) | ||
: base(service, options) | ||
{ | ||
} | ||
|
||
public static EdgeDriverService DefaultService | ||
{ | ||
get | ||
{ | ||
EdgeDriverService service = EdgeDriverService.CreateDefaultService(); | ||
service.UseSpecCompliantProtocol = true; | ||
return service; | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
dotnet/test/common/CustomDriverConfigs/SpecCompliantChromeDriver.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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenQA.Selenium.Chrome | ||
{ | ||
public class SpecCompliantChromeDriver : ChromeDriver | ||
{ | ||
public SpecCompliantChromeDriver(ChromeDriverService service) | ||
: this(service, DefaultOptions) | ||
{ | ||
} | ||
|
||
public SpecCompliantChromeDriver(ChromeDriverService service, ChromeOptions options) | ||
: base(service, options) | ||
{ | ||
} | ||
|
||
public static ChromeOptions DefaultOptions | ||
{ | ||
get { return new ChromeOptions() { UseSpecCompliantProtocol = true }; } | ||
} | ||
} | ||
} |
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
Oops, something went wrong.