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

Method set

javascript/selenium-webdriver/lib/capabilities.js:363–369  ·  view source on GitHub ↗

* @param {string} key The capability key. * @param {*} value The capability value. * @return {!Capabilities} A self reference. * @throws {TypeError} If the `key` is not a string.

(key, value)

Source from the content-addressed store, hash-verified

361 * @throws {TypeError} If the `key` is not a string.
362 */
363 set(key, value) {
364 if (typeof key !== 'string') {
365 throw new TypeError('Capability keys must be strings: ' + typeof key)
366 }
367 this.map_.set(key, value)
368 return this
369 }
370
371 /**
372 * Sets whether a WebDriver session should implicitly accept self-signed, or

Callers 11

mergeMethod · 0.95
setBrowserNameMethod · 0.95
setBrowserVersionMethod · 0.95
setPageLoadStrategyMethod · 0.95
setPlatformMethod · 0.95
setLoggingPrefsMethod · 0.95
setProxyMethod · 0.95
setAlertBehaviorMethod · 0.95
enableDownloadsMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected