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

Method constructor

javascript/selenium-webdriver/testing/index.js:277–282  ·  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

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected