Capabilities

This is a JavaScript wrapper for DesiredCapabilities of Selenium .NET library. For code complete feature use class name CapabilitiesWrapper, e.g.

var /**CapabilitiesWrapper*/caps = WebDriver.CreateDesiredCapabilities();

Action Summary

Action Description
GetCapability Gets a capability of the browser.
HasCapability Gets a value indicating whether the browser has a given capability.
SetCapability Sets a capability of the browser.

Action Detail

GetCapability(capability)

Gets a capability of the browser.

Parameters:

Name Type Description
capability string The capability to get.

Returns:

capability value.

HasCapability(capability)

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

Parameters:

Name Type Description
capability string The capability to get.

Returns:

'true' if the capability is set, 'false' - otherwise.

SetCapability(capability, capabilityValue)

Sets a capability of the browser.

Parameters:

Name Type Description
capability string The capability to get.
capabilityValue string The value for the capability.