DesiredCapabilities ClassWebDriver
Class to Create the capabilities of the browser you require for IWebDriver. If you wish to use default values use the static methods
Inheritance Hierarchy

SystemObject
  OpenQA.Selenium.RemoteDesiredCapabilities

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

public class DesiredCapabilities : ICapabilities

The DesiredCapabilities type exposes the following members.

Constructors

  NameDescription
Public methodDesiredCapabilities
Initializes a new instance of the DesiredCapabilities class
Public methodCode exampleDesiredCapabilities(DictionaryString, Object)
Initializes a new instance of the DesiredCapabilities class
Public methodDesiredCapabilities(String, String, Platform)
Initializes a new instance of the DesiredCapabilities class
Top
Properties

  NameDescription
Public propertyBrowserName
Gets the browser name
Public propertyIsJavaScriptEnabled
Gets or sets a value indicating whether the browser is JavaScript enabled
Public propertyPlatform
Gets or sets the platform
Public propertyVersion
Gets the browser version
Top
Methods

  NameDescription
Public methodStatic memberAndroid
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberChrome
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberEdge
Method to return a new DesiredCapabilities using defaults
Public methodEquals
Compare two DesiredCapabilities and will return either true or false
(Overrides ObjectEquals(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.)
Public methodStatic memberFirefox
Method to return a new DesiredCapabilities using defaults
Public methodGetCapability
Gets a capability of the browser.
Public methodGetHashCode
Return HashCode for the DesiredCapabilities that has been created
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasCapability
Gets a value indicating whether the browser has a given capability.
Public methodStatic memberHtmlUnit
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberHtmlUnitWithJavaScript
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberInternetExplorer
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberIPad
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberIPhone
Method to return a new DesiredCapabilities using defaults
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberOpera
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberPhantomJS
Method to return a new DesiredCapabilities using defaults
Public methodStatic memberSafari
Method to return a new DesiredCapabilities using defaults
Public methodSetCapability
Sets a capability of the browser.
Public methodToDictionary
Public methodToString
Return a string of capabilities being used
(Overrides ObjectToString.)
Top
See Also

Reference