Constructor
new Options(otheropt)
Name | Type | Attributes | Description |
---|---|---|---|
other | Capabilities | | <optional> | Another set of capabilities to initialize this instance from. |
- Source
Methods
addArguments(…args) → (non-null) {Options}
Specify additional command line arguments that should be used when starting the Firefox browser.
Name | Type | Attributes | Description |
---|---|---|---|
args | string | | <repeatable> | The arguments to include. |
- Source
A self reference.
- Type:
- Options
addExtensions(…paths) → (non-null) {Options}
Add extensions that should be installed when starting Firefox.
Name | Type | Attributes | Description |
---|---|---|---|
paths | string | <repeatable> | The paths to the extension XPI files to install. |
- Source
A self reference.
- Type:
- Options
enableBidi() → (non-null) {Capabilities}
Enable bidi connection
- Source
- Type:
- Capabilities
enableDebugger()
Enables moz:debuggerAddress for firefox cdp
- Source
enableMobile(androidPackage) → (non-null) {Options}
Enables Mobile start up features
Name | Type | Default | Description |
---|---|---|---|
androidPackage | string | org.mozilla.firefox | The package to use |
- Source
A self reference
- Type:
- Options
setBinary(binary) → (non-null) {Options}
Sets the binary to use. The binary may be specified as the path to a Firefox executable.
Name | Type | Description |
---|---|---|
binary | string | The binary to use. |
- Source
If
binary
is an invalid type.- Type
- TypeError
A self reference.
- Type:
- Options
setPreference(key, value) → (non-null) {Options}
Name | Type | Description |
---|---|---|
key | string | the preference key. |
value | string | | the preference value. |
- Source
if either the key or value has an invalid type.
- Type
- TypeError
A self reference.
- Type:
- Options
setProfile(profile) → (non-null) {Options}
Sets the path to an existing profile to use as a template for new browser sessions. This profile will be copied for each new session - changes will not be applied to the profile itself.
Name | Type | Description |
---|---|---|
profile | string | The profile to use. |
- Source
if profile is not a string.
- Type
- TypeError
A self reference.
- Type:
- Options
windowSize(size) → (non-null) {Options}
Sets the initial window size
Name | Type | Description |
---|---|---|
size | Object | The desired window size. |
- Source
if width or height is unspecified, not a number, or less than or equal to 0.
- Type
- TypeError
A self reference.
- Type:
- Options