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

Method setBinary

javascript/selenium-webdriver/firefox.js:371–377  ·  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

369 * @throws {TypeError} If `binary` is an invalid type.
370 */
371 setBinary(binary) {
372 if (binary instanceof Channel || typeof binary === 'string') {
373 this.firefoxOptions_().binary = binary
374 return this
375 }
376 throw TypeError('binary must be a string path ')
377 }
378
379 /**
380 * 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