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

Method setBinary

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

273 * @throws {TypeError} If `binary` is an invalid type.
274 */
275 setBinary(binary) {
276 if (binary instanceof Channel || typeof binary === 'string') {
277 this.firefoxOptions_().binary = binary
278 return this
279 }
280 throw TypeError('binary must be a string path ')
281 }
282
283 /**
284 * 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