ICapabilitiesGetCapability Method WebDriver
Gets a capability of the browser.

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

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.
See Also

Reference