Class webdriver.Capabilities

code »

Constructor

webdriver.Capabilities ( opt_other )
Parameters
opt_other: (webdriver.Capabilities|Object)=
Another set of capabilities to merge into this instance.
Show:

Instance Methods

code »get ( key )*
Parameters
key: string
The capability to return.
Returns
The capability with the given key, or null if it has not been set.
code »has ( key )boolean
Parameters
key: string
The capability to check.
Returns
Whether the specified capability is set.

Merges another set of capabilities into this instance. Any duplicates in the provided set will override those already set on this instance.

Parameters
other: !(webdriver.Capabilities|Object)
The capabilities to merge into this instance.
Returns
A self reference.
Parameters
key: string
The capability to set.
value: *
The capability value. Capability values must be JSON serializable. Pass null to unset the capability.
Returns
A self reference.
Returns
The JSON representation of this instance.

Instance Properties

Static Functions

Returns
A basic set of capabilities for Android.
Returns
A basic set of capabilities for Chrome.
Returns
A basic set of capabilities for Firefox.
Returns
A basic set of capabilities for HTMLUnit.
Returns
A basic set of capabilities for HTMLUnit with enabled Javascript.
Returns
A basic set of capabilities for Internet Explorer.
Returns
A basic set of capabilities for iPad.
Returns
A basic set of capabilities for iPhone.
Returns
A basic set of capabilities for Opera.
Returns
A basic set of capabilities for PhantomJS.
Returns
A basic set of capabilities for Safari.