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

Method withCapabilities

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

* Recommended way is to use set*Options where * is the browser(eg setChromeOptions) * * Sets the desired capabilities when requesting a new session. This will * overwrite any previously set capabilities. * @param {!(Object|Capabilities)} capabilities The desired capabilities for *

(capabilities)

Source from the content-addressed store, hash-verified

328 * @return {!Builder} A self reference.
329 */
330 withCapabilities(capabilities) {
331 this.capabilities_ = new Capabilities(capabilities)
332 return this
333 }
334
335 /**
336 * Returns the base set of capabilities this instance is currently configured

Callers 1

testFunction · 0.80

Calls

no outgoing calls

Tested by 1

testFunction · 0.64