Skip to content

Commit 5226a5a

Browse files
committed
Adding ability to test Safari Technology Preview in .NET
1 parent 95956f8 commit 5226a5a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace OpenQA.Selenium.Safari
2+
{
3+
// This is a simple wrapper class to create a SafariDriver that
4+
// uses the technology preview implementation and has no parameters in the
5+
// constructor.
6+
public class SafariTechnologyPreviewDriver : SafariDriver
7+
{
8+
public SafariTechnologyPreviewDriver()
9+
: base("/Applications/Safari Technology Preview.app/Contents/MacOS")
10+
{
11+
}
12+
}
13+
}

dotnet/test/safari/WebDriver.Safari.Tests.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<appSettings>
44
<add key="Driver" value="OpenQA.Selenium.Safari.SafariDriver" />
55
<add key="Assembly" value="WebDriver" />
6+
<!--NOTE: To test the Safari Technology Preview, uncomment the below lines"
7+
(the "Driver and "Assembly" settings), and comment the standard ones above here.
8+
DO NOT COMMIT THIS CHANGE AFTER YOU ARE DONE!-->
9+
<!--add key="Driver" value="OpenQA.Selenium.Safari.SafariTechnologyPreviewDriver" />
10+
<add key="Assembly" value="WebDriver.Safari.Tests" /-->
611
<add key="DriverName" value="Safari"/>
712
<add key="RemoteCapabilities" value="safari"/>
813

0 commit comments

Comments
 (0)