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
OpenQA.Selenium.RemoteDesiredCapabilities
Namespace: OpenQA.Selenium.Remote
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax
The DesiredCapabilities type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | DesiredCapabilities |
Initializes a new instance of the DesiredCapabilities class
|
![]() ![]() | DesiredCapabilities(DictionaryString, Object) |
Initializes a new instance of the DesiredCapabilities class
|
![]() | DesiredCapabilities(String, String, Platform) |
Initializes a new instance of the DesiredCapabilities class
|
Properties
Name | Description | |
---|---|---|
![]() | BrowserName |
Gets the browser name
|
![]() | IsJavaScriptEnabled |
Gets or sets a value indicating whether the browser is JavaScript enabled
|
![]() | Platform |
Gets or sets the platform
|
![]() | Version |
Gets the browser version
|
Methods
Name | Description | |
---|---|---|
![]() ![]() | Android |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | Chrome |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | Edge |
Method to return a new DesiredCapabilities using defaults
|
![]() | Equals |
Compare two DesiredCapabilities and will return either true or false
(Overrides ObjectEquals(Object).) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | Firefox |
Method to return a new DesiredCapabilities using defaults
|
![]() | GetCapability |
Gets a capability of the browser.
|
![]() | GetHashCode |
Return HashCode for the DesiredCapabilities that has been created
(Overrides ObjectGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HasCapability |
Gets a value indicating whether the browser has a given capability.
|
![]() ![]() | HtmlUnit |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | HtmlUnitWithJavaScript |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | InternetExplorer |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | IPad |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | IPhone |
Method to return a new DesiredCapabilities using defaults
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Opera |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | PhantomJS |
Method to return a new DesiredCapabilities using defaults
|
![]() ![]() | Safari |
Method to return a new DesiredCapabilities using defaults
|
![]() | SetCapability |
Sets a capability of the browser.
|
![]() | ToDictionary |
Converts the ICapabilities object to a DictionaryTKey, TValue.
|
![]() | ToString |
Return a string of capabilities being used
(Overrides ObjectToString.) |
See Also