PhantomJSOptions AddAdditionalCapability Method WebDriver
Provides a means to add additional capabilities not yet added as type safe options for the PhantomJS driver.

Namespace: OpenQA.Selenium.PhantomJS
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public void AddAdditionalCapability(
	string capabilityName,
	Object capabilityValue
)

Parameters

capabilityName
Type: OnlineSystem String
The name of the capability to add.
capabilityValue
Type: OnlineSystem Object
The value of the capability to add.
Exceptions

ExceptionCondition
OnlineSystem ArgumentException thrown when attempting to add a capability for which there is already a type safe option, or when capabilityName is   or the empty string.
Remarks

Calling AddAdditionalCapability(String, Object) where capabilityName has already been added will overwrite the existing value with the new value in capabilityValue
See Also