* 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)
| 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 |
no test coverage detected