* 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 environment of the current process. * * @param {(Map |Object |null)} env The desir
(env)
| 407 | * @return {!DriverService.Builder} A self reference. |
| 408 | */ |
| 409 | setEnvironment(env) { |
| 410 | if (env instanceof Map) { |
| 411 | let tmp = {} |
| 412 | env.forEach((value, key) => (tmp[key] = value)) |
| 413 | env = tmp |
| 414 | } |
| 415 | this.options_.env = env |
| 416 | return this |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * IO configuration for the spawned server process. For more information, |