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¶
Gets a capability of the browser.
WebDriver.CreateDesiredCapabilities().GetCapability(capability)
Parameters:
Name | Type | Description |
---|---|---|
capability | string | The capability to get. |
Returns:
capability value.
HasCapability¶
Gets a value indicating whether the browser has a given capability.
WebDriver.CreateDesiredCapabilities().HasCapability(capability)
Parameters:
Name | Type | Description |
---|---|---|
capability | string | The capability to get. |
Returns:
'true' if the capability is set, 'false' - otherwise.
SetCapability¶
Sets a capability of the browser.
WebDriver.CreateDesiredCapabilities().SetCapability(capability, capabilityValue)
Parameters:
Name | Type | Description |
---|---|---|
capability | string | The capability to get. |
capabilityValue | string | The value for the capability. |