@@ -47,19 +47,39 @@ public class SafariOptions : DriverOptions
4747 {
4848 private const string BrowserNameValue = "safari" ;
4949 private const string EnableAutomaticInspectionSafariOption = "safari:automaticInspection" ;
50- private const string EnableAutomticProfilingSafariOption = "safari:automaticProfiling" ;
50+ private const string EnableAutomaticProfilingSafariOption = "safari:automaticProfiling" ;
5151
5252 private bool enableAutomaticInspection = false ;
5353 private bool enableAutomaticProfiling = false ;
54+ private bool technologyPreview = false ;
5455
5556 /// <summary>
5657 /// Initializes a new instance of the <see cref="SafariOptions"/> class.
5758 /// </summary>
5859 public SafariOptions ( ) : base ( )
5960 {
6061 this . BrowserName = BrowserNameValue ;
62+ this . technologyPreview = false ;
6163 this . AddKnownCapabilityName ( SafariOptions . EnableAutomaticInspectionSafariOption , "EnableAutomaticInspection property" ) ;
62- this . AddKnownCapabilityName ( SafariOptions . EnableAutomticProfilingSafariOption , "EnableAutomaticProfiling property" ) ;
64+ this . AddKnownCapabilityName ( SafariOptions . EnableAutomaticProfilingSafariOption , "EnableAutomaticProfiling property" ) ;
65+ }
66+
67+ /// <summary>
68+ /// Allows the Options class to be used with a Safari Technology Preview driver
69+ /// </summary>
70+ public void UseTechnologyPreview ( )
71+ {
72+ this . technologyPreview = true ;
73+ this . BrowserName = "Safari Technology Preview" ;
74+ }
75+
76+ /// <summary>
77+ /// Gets or sets a value indicating whether to have the driver preload the
78+ /// Web Inspector and JavaScript debugger in the background.
79+ /// </summary>
80+ public bool TechnologyPreview
81+ {
82+ get { return this . technologyPreview ; }
6383 }
6484
6585 /// <summary>
@@ -98,7 +118,7 @@ public override ICapabilities ToCapabilities()
98118
99119 if ( this . enableAutomaticProfiling )
100120 {
101- capabilities . SetCapability ( EnableAutomticProfilingSafariOption , true ) ;
121+ capabilities . SetCapability ( EnableAutomaticProfilingSafariOption , true ) ;
102122 }
103123
104124 return capabilities . AsReadOnly ( ) ;
0 commit comments