DriverOptionsToCapabilities Method WebDriver
Returns DesiredCapabilities for the specific browser driver with these options included ascapabilities. This does not copy the options. Further changes will be reflected in the returned capabilities.

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

public abstract ICapabilities ToCapabilities()

Return Value

Type: ICapabilities
The DesiredCapabilities for browser driver with these options.
See Also

Reference