forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding default Safari driver class for .NET tests
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 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,23 @@ | ||
namespace OpenQA.Selenium.Safari | ||
{ | ||
// This is a simple wrapper class to create a SafariDriver that | ||
// uses the technology preview implementation and has no parameters in the | ||
// constructor. | ||
public class DefaultSafariDriver : SafariDriver | ||
{ | ||
public DefaultSafariDriver() | ||
: this(DefaultService, new SafariOptions()) | ||
{ | ||
} | ||
|
||
public DefaultSafariDriver(SafariDriverService service, SafariOptions options) | ||
: base(service, options) | ||
{ | ||
} | ||
|
||
public static SafariDriverService DefaultService | ||
{ | ||
get { return SafariDriverService.CreateDefaultService("/usr/bin"); } | ||
} | ||
} | ||
} |