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

Method constructor

javascript/selenium-webdriver/lib/webdriver.js:673–695  ·  view source on GitHub ↗

* @param {!(./session.Session|IThenable<!./session.Session>)} session Either * a known session or a promise that will be resolved to a session. * @param {!command.Executor} executor The executor to use when sending * commands to the browser. * @param {(function(this: void): ?)=}

(session, executor, onQuit = undefined)

Source from the content-addressed store, hash-verified

671 * when the session is terminated.
672 */
673 constructor(session, executor, onQuit = undefined) {
674 /** @private {!Promise<!Session>} */
675 this.session_ = Promise.resolve(session)
676
677 // If session is a rejected promise, add a no-op rejection handler.
678 // This effectively hides setup errors until users attempt to interact
679 // with the session.
680 this.session_.catch(function () {})
681
682 /** @private {!command.Executor} */
683 this.executor_ = executor
684
685 /** @private {input.FileDetector} */
686 this.fileDetector_ = null
687
688 /** @private @const {(function(this: void): ?|undefined)} */
689 this.onQuit_ = onQuit
690
691 /** @private {./virtual_authenticator}*/
692 this.authenticatorId_ = null
693
694 this.pinnedScripts_ = {}
695 }
696
697 /**
698 * The shared logger deprecation notices (e.g. {@link WebDriver#getBidi})

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected