Constructor
new Builder(exe)
Name | Type | Description |
---|---|---|
exe | string | Path to the executable to use. This executable must accept the |
- Source
If the provided executable path does not exist.
- Type
- Error
Methods
addArguments(…var_args) → (non-null) {THIS}
Define additional command line arguments to use when starting the server.
- {THIS}
Name | Type | Attributes | Description |
---|---|---|---|
var_args | CommandLineFlag | <repeatable> | The arguments to include. |
- Source
A self reference.
- Type:
- THIS
build() → (non-null) {DriverService}
Creates a new DriverService using this instance's current configuration.
- Source
A new driver service.
- Type:
- DriverService
setEnvironment(env) → (non-null) {DriverService.Builder}
Defines the environment to start the server under. This setting will be inherited by every browser session started by the server. By default, the server will inherit the enviroment of the current process.
Name | Type | Description |
---|---|---|
env | Map.<string, string> | | The desired environment to use, or |
- Source
A self reference.
- Type:
- DriverService.
Builder
setHostname(hostname) → (non-null) {DriverService.Builder}
Sets the host name to access the server on. If specified, the loopback setting will be ignored.
Name | Type | Description |
---|---|---|
hostname | string |
- Source
A self reference.
- Type:
- DriverService.
Builder
setLoopback(loopback) → (non-null) {DriverService.Builder}
Sets whether the service should be accessed at this host's loopback address.
Name | Type | Description |
---|---|---|
loopback | boolean |
- Source
A self reference.
- Type:
- DriverService.
Builder
setPath(basePathnullable) → (non-null) {DriverService.Builder}
Sets the base path for WebDriver REST commands (e.g. "/wd/hub"). By default, the driver will accept commands relative to "/".
Name | Type | Attributes | Description |
---|---|---|---|
basePath | string | <nullable> | The base path to use, or |
- Source
A self reference.
- Type:
- DriverService.
Builder
setPort(port) → (non-null) {DriverService.Builder}
Sets the port to start the server on.
Name | Type | Description |
---|---|---|
port | number | The port to use, or 0 for any free port. |
- Source
If an invalid port is specified.
- Type
- Error
A self reference.
- Type:
- DriverService.
Builder
setStdio(config) → (non-null) {DriverService.Builder}
IO configuration for the spawned server process. For more information, refer to the documentation of child_process.spawn
.
Name | Type | Description |
---|---|---|
config | StdIoOptions | The desired IO configuration. |
- Source
A self reference.
- Type:
- DriverService.
Builder