Class SafariOptions
Class to manage options specific to SafariDriver
public class SafariOptions : DriverOptions
- Inheritance
-
SafariOptions
- Inherited Members
Examples
SafariOptions options = new SafariOptions();
options.SkipExtensionInstallation = true;
For use with SafariDriver:
SafariDriver driver = new SafariDriver(options);
For use with RemoteWebDriver:
RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), options.ToCapabilities());
Constructors
SafariOptions()
Initializes a new instance of the SafariOptions class.
public SafariOptions()
Properties
EnableAutomaticInspection
Gets or sets a value indicating whether to have the driver preload the Web Inspector and JavaScript debugger in the background.
public bool EnableAutomaticInspection { get; set; }
Property Value
EnableAutomaticProfiling
Gets or sets a value indicating whether to have the driver preload the Web Inspector and start a timeline recording in the background.
public bool EnableAutomaticProfiling { get; set; }
Property Value
TechnologyPreview
Gets or sets a value indicating whether to have the driver preload the Web Inspector and JavaScript debugger in the background.
public bool TechnologyPreview { get; }
Property Value
Methods
ToCapabilities()
Returns ICapabilities for Safari with these options included as capabilities. This copies the options. Further changes will not be reflected in the returned capabilities.
public override ICapabilities ToCapabilities()
Returns
- ICapabilities
The ICapabilities for Safari with these options.
UseTechnologyPreview()
Allows the Options class to be used with a Safari Technology Preview driver
public void UseTechnologyPreview()