DesiredCapabilitiesHasCapability Method WebDriver
Gets a value indicating whether the browser has a given capability.

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

public bool HasCapability(
	string capability
)

Parameters

capability
Type: SystemString
The capability to get.

Return Value

Type: Boolean
Returns if the browser has the capability; otherwise, .

Implements

ICapabilitiesHasCapability(String)
See Also

Reference