Table of Contents

Interface ICapabilities

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Capabilities of the browser that you are going to use

public interface ICapabilities

Properties

this[string]

Gets the capability value with the specified name.

object this[string capabilityName] { get; }

Parameters

capabilityName string

The name of the capability to get.

Property Value

object

The value of the capability.

Exceptions

ArgumentException

The specified capability name is not in the set of capabilities.

Methods

GetCapability(string)

Gets a capability of the browser.

object? GetCapability(string capability)

Parameters

capability string

The capability to get.

Returns

object

An object associated with the capability, or null if the capability is not set on the browser.

HasCapability(string)

Gets a value indicating whether the browser has a given capability.

bool HasCapability(string capability)

Parameters

capability string

The capability to get.

Returns

bool

Returns true if the browser has the capability; otherwise, false.