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

BrowserName

Gets the browser name

string BrowserName { get; }

Property Value

string

IsJavaScriptEnabled

Gets a value indicating whether the browser is JavaScript enabled

bool IsJavaScriptEnabled { get; }

Property Value

bool

Platform

Gets the platform

Platform Platform { get; }

Property Value

Platform

Version

Gets the browser version

string Version { get; }

Property Value

string

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.