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

Method setBinary

javascript/selenium-webdriver/firefox.js:370–376  ·  view source on GitHub ↗

* Sets the binary to use. The binary may be specified as the path to a * Firefox executable. * * @param {(string)} binary The binary to use. * @return {!Options} A self reference. * @throws {TypeError} If `binary` is an invalid type.

(binary)

Source from the content-addressed store, hash-verified

368 * @throws {TypeError} If `binary` is an invalid type.
369 */
370 setBinary(binary) {
371 if (binary instanceof Channel || typeof binary === 'string') {
372 this.firefoxOptions_().binary = binary
373 return this
374 }
375 throw TypeError('binary must be a string path ')
376 }
377
378 /**
379 * Enables Mobile start up features

Callers 2

GetBrowserForTestsFunction · 0.95
builderMethod · 0.95

Calls 1

firefoxOptions_Method · 0.95

Tested by

no test coverage detected