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

Method addExtensions

javascript/selenium-webdriver/chromium.js:322–329  ·  view source on GitHub ↗

* Add additional extensions to install when launching the browser. Each extension * should be specified as the path to the packed CRX file, or a Buffer for an * extension. * @param {...(string|!Buffer|!Array<(string|!Buffer)>)} args The * extensions to add. * @return {!Options} A

(...args)

Source from the content-addressed store, hash-verified

320 * @return {!Options} A self reference.
321 */
322 addExtensions(...args) {
323 let extensions = this.options_.extensions || new Extensions()
324 extensions.add(...args)
325 if (extensions.length) {
326 this.options_.extensions = extensions
327 }
328 return this
329 }
330
331 /**
332 * Sets the path to the browser binary to use. On Mac OS X, this path should

Callers 2

options_test.jsFile · 0.45
options_test.jsFile · 0.45

Calls 1

addMethod · 0.65

Tested by

no test coverage detected