DesiredCapabilities Constructor (DictionaryString, Object)WebDriver
Initializes a new instance of the DesiredCapabilities class

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

public DesiredCapabilities(
	Dictionary<string, Object> rawMap
)

Parameters

rawMap
Type: System.Collections.GenericDictionaryString, Object
Dictionary of items for the remote driver
Examples

DesiredCapabilities capabilities = new DesiredCapabilities(new Dictionary<string,object>(){["browserName","firefox"],["version",string.Empty],["javaScript",true]});
See Also

Reference