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

Method createSession

javascript/selenium-webdriver/chrome.js:217–220  ·  view source on GitHub ↗

* Creates a new session with the ChromeDriver. * * @param {(Capabilities|Options)=} opt_config The configuration options. * @param {(remote.DriverService|http.Executor)=} opt_serviceExecutor Either * a DriverService to use for the remote end, or a preconfigured executor * for

(opt_config, opt_serviceExecutor)

Source from the content-addressed store, hash-verified

215 * @return {!Driver} A new driver instance.
216 */
217 static createSession(opt_config, opt_serviceExecutor) {
218 let caps = opt_config || new Options()
219 return /** @type {!Driver} */ (super.createSession(caps, opt_serviceExecutor, 'goog', CHROME_CAPABILITY_KEY))
220 }
221
222 /**
223 * returns new instance chrome driver service

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected