ServiceOptions

A record object that defines the configuration options for a DriverService instance.

Members

(non-null) args :Array.<CommandLineFlag>|IThenable.<!Array.<CommandLineFlag>>

The arguments to pass to the service. If a promise is provided, the service will wait for it to resolve before starting.

Type:

env :Object.<string, string>|undefined

The environment variables that should be visible to the server process. Defaults to inheriting the current process's environment.

Type:
  • Object.<string, string> | undefined

hostname :string|undefined

The host name to access the server on. If this option is specified, the #loopback option will be ignored.

Type:
  • string | undefined

loopback :boolean|undefined

Whether the service should only be accessed on this host's loopback address.

Type:
  • boolean | undefined

path :string|undefined|null

The base path on the server for the WebDriver wire protocol (e.g. '/wd/hub'). Defaults to '/'.

Type:
  • string | undefined | null

port :number|!IThenable.<number>

The port to start the server on (must be > 0). If the port is provided as a promise, the service will wait for the promise to resolve before starting.

Type:
  • number | !IThenable.<number>

stdio :StdIoOptions|undefined

IO configuration for the spawned server process. For more information, refer to the documentation of child_process.spawn.

Type: