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

Method constructor

javascript/selenium-webdriver/testing/index.js:273–278  ·  view source on GitHub ↗

* @param {!TargetBrowser} browser the browser targeted in this environment. * @param {?(string|remote.SeleniumServer)=} url remote URL of an existing * Selenium server to test against.

(browser, url = undefined)

Source from the content-addressed store, hash-verified

271 * Selenium server to test against.
272 */
273 constructor(browser, url = undefined) {
274 browser = /** @type {!TargetBrowser} */ (Object.seal(Object.assign({}, browser)))
275
276 TARGET_MAP.set(this, browser)
277 URL_MAP.set(this, url || null)
278 }
279
280 /** @return {!TargetBrowser} the target browser for this test environment. */
281 get browser() {

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected