Table of Contents

Class CapabilityType

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides types of capabilities for the DesiredCapabilities object.

public static class CapabilityType
Inheritance
CapabilityType
Inherited Members

Fields

AcceptInsecureCertificates

Capability name used to indicate whether the browser accepts SSL certificates on W3C Endpoints

public static readonly string AcceptInsecureCertificates

Field Value

string

AcceptSslCertificates

Capability name used to indicate whether the browser accepts SSL certificates.

public static readonly string AcceptSslCertificates

Field Value

string

BrowserName

Capability name used for the browser name.

public static readonly string BrowserName

Field Value

string

BrowserVersion

Capability name used for the browser version.

public static readonly string BrowserVersion

Field Value

string

DisableOverlappedElementCheck

Capability name used to disable the check for overlapping elements.

public static readonly string DisableOverlappedElementCheck

Field Value

string

EnableDownloads

Capability name used to get a value indicating whether files may be downloaded from remote end.

public static readonly string EnableDownloads

Field Value

string

EnableProfiling

Capability name used to enable the profiling log for the session.

public static readonly string EnableProfiling

Field Value

string

HandlesAlerts

Capability name used to indicate whether the browser can handle alerts.

public static readonly string HandlesAlerts

Field Value

string

HasNativeEvents

Capability name used to indicate whether the browser uses native events.

public static readonly string HasNativeEvents

Field Value

string

IsJavaScriptEnabled

Capability name used to indicate whether JavaScript is enabled for the browser.

public static readonly string IsJavaScriptEnabled

Field Value

string

LoggingPreferences

Capability name used to indicate the logging preferences for the session.

public static readonly string LoggingPreferences

Field Value

string

PageLoadStrategy

Capability name used to indicate the page load strategy for the browser.

public static readonly string PageLoadStrategy

Field Value

string

Platform

Capability name used for the browser platform.

public static readonly string Platform

Field Value

string

PlatformName

Capability name used for the platform name.

public static readonly string PlatformName

Field Value

string

Proxy

Capability name used for the browser proxy.

public static readonly string Proxy

Field Value

string

Rotatable

Capability name used to indicate whether the browser supports rotation.

public static readonly string Rotatable

Field Value

string

SetWindowRect

Capability name used to indicate whether the driver supports setting the browser window's size and position.

public static readonly string SetWindowRect

Field Value

string

SupportsApplicationCache

Capability name used to indicate whether the driver supports application cache.

public static readonly string SupportsApplicationCache

Field Value

string

SupportsFindingByCss

Capability name used to indicate whether the browser can find elements via CSS selectors.

public static readonly string SupportsFindingByCss

Field Value

string

SupportsLocationContext

Capability name used to indicate whether the driver supports geolocation context.

public static readonly string SupportsLocationContext

Field Value

string

SupportsWebStorage

Capability name used to indicate whether the driver supports web storage.

public static readonly string SupportsWebStorage

Field Value

string

TakesScreenshot

Capability name used to indicate whether the browser can take screenshots.

public static readonly string TakesScreenshot

Field Value

string

Timeouts

Capability name used to get or set timeout values when creating a session.

public static readonly string Timeouts

Field Value

string

UnexpectedAlertBehavior

Capability name used to indicate how the browser handles unexpected alerts.

public static readonly string UnexpectedAlertBehavior

Field Value

string

UnhandledPromptBehavior

Capability name used to indicate how the browser handles unhandled user prompts.

public static readonly string UnhandledPromptBehavior

Field Value

string

UseStrictFileInteractability

Capability name used to get or set whether <input type='file'/> elements must be visible to upload files.

public static readonly string UseStrictFileInteractability

Field Value

string

Version

Capability name used for the browser version.

public static readonly string Version

Field Value

string

WebSocketUrl

Capability name used to get a value indicating whether to request URL of a WebSocket connection for bidirectional communication with a driver.

public static readonly string WebSocketUrl

Field Value

string

Methods

IsSpecCompliantCapabilityName(string)

Gets a value indicating whether a given capability name is compliant with the W3C WebDriver Specification.

public static bool IsSpecCompliantCapabilityName(string capabilityName)

Parameters

capabilityName string

The name of the capability to check for compliance.

Returns

bool

true if the capability name is valid according to the rules of the specification; otherwise, false.