MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / setEnvironment

Method setEnvironment

javascript/selenium-webdriver/remote/index.js:409–417  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected