DesiredCapabilitiesGetCapability Method WebDriver
Gets a capability of the browser.

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

public Object GetCapability(
	string capability
)

Parameters

capability
Type: SystemString
The capability to get.

Return Value

Type: Object
An object associated with the capability, or if the capability is not set on the browser.

Implements

ICapabilitiesGetCapability(String)
See Also

Reference