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

Method withCapabilities

javascript/selenium-webdriver/index.js:329–332  ·  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

327 * @return {!Builder} A self reference.
328 */
329 withCapabilities(capabilities) {
330 this.capabilities_ = new Capabilities(capabilities)
331 return this
332 }
333
334 /**
335 * 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