Methods
public static android(): Capabilities
Returns
Capabilities
A basic set of capabilities for Android.
Returns
Capabilities
A basic set of capabilities for Chrome.
public static firefox(): Capabilities
Returns
Capabilities
A basic set of capabilities for Firefox.
public get(key: string): any
Parameters
Returns
any
The capability with the given key, or {@code null} if it has
not been set.
public has(key: string): boolean
Parameters
-
key: string
The capability to check.
Returns
boolean
Whether the specified capability is set.
public static htmlunit(): Capabilities
Returns
Capabilities
A basic set of capabilities for HTMLUnit.
public static htmlunitwithjs(): Capabilities
Returns
Capabilities
A basic set of capabilities for HTMLUnit
with enabled Javascript.
Returns
Capabilities
A basic set of capabilities for
Internet Explorer.
Returns
Capabilities
A basic set of capabilities for iPad.
Returns
Capabilities
A basic set of capabilities for iPhone.
Merges another set of capabilities into this instance. Any duplicates in
the provided set will override those already set on this instance.
Parameters
Returns
Capabilities
A self reference.
public merge(other: any): Capabilities
Parameters
Returns
Capabilities
Returns
Capabilities
A basic set of capabilities for Opera.
public static phantomjs(): Capabilities
Returns
Capabilities
A basic set of capabilities for
PhantomJS.
Returns
Capabilities
A basic set of capabilities for Safari.
public set(key: string, value: any): Capabilities
Parameters
Returns
Capabilities
A self reference.
public toJSON(): any
Returns
any
The JSON representation of this instance.