MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / setCapability

Method setCapability

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

* Sets the desired capability when requesting a new session. * If there is already a capability named key, its value will be overwritten with value. * This is a convenience wrapper around builder.getCapabilities().set(key, value) to support Builder method chaining. * @param {string} key The

(key, value)

Source from the content-addressed store, hash-verified

349 * @return {!Builder} A self reference.
350 */
351 setCapability(key, value) {
352 this.capabilities_.set(key, value)
353 return this
354 }
355
356 /**
357 * Configures the target browser for clients created by this instance.

Callers 2

builderMethod · 0.95
builder_test.jsFile · 0.45

Calls 1

setMethod · 0.65

Tested by

no test coverage detected