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

Method constructor

javascript/selenium-webdriver/index.js:139–151  ·  view source on GitHub ↗

* @param {!IThenable<!Session>} session * @param {...?} rest

(session, ...rest)

Source from the content-addressed store, hash-verified

137 * @param {...?} rest
138 */
139 constructor(session, ...rest) {
140 super(session, ...rest)
141
142 const pd = this.getSession().then((session) => {
143 return new ctor(session, ...rest)
144 })
145
146 /** @override */
147 this.then = pd.then.bind(pd)
148
149 /** @override */
150 this.catch = pd.catch.bind(pd)
151 }
152 }
153 THENABLE_DRIVERS.set(ctor, thenableWebDriverProxy)
154 }

Callers 1

Calls 2

bindMethod · 0.80
getSessionMethod · 0.45

Tested by

no test coverage detected