SafariOptions ClassWebDriver
Class to manage options specific to SafariDriver
Inheritance Hierarchy


Namespace: OpenQA.Selenium.Safari
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0

public class SafariOptions : DriverOptions

The SafariOptions type exposes the following members.


Public methodSafariOptions
Initializes a new instance of the SafariOptions class.

Public methodAddAdditionalCapability
Provides a means to add additional capabilities not yet added as type safe options for the Safari driver.
(Overrides DriverOptionsAddAdditionalCapability(String, Object).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGenerateLoggingPreferencesDictionary
Generates the logging preferences dictionary for transmission as a desired capability.
(Inherited from DriverOptions.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetLoggingPreference
Sets the logging preferences for this driver.
(Inherited from DriverOptions.)
Public methodToCapabilities
Returns ICapabilities for Safari with these options included as capabilities. This copies the options. Further changes will not be reflected in the returned capabilities.
(Overrides DriverOptionsToCapabilities.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

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());
See Also