* @param {string} key The capability key. * @param {*} value The capability value. * @return {!Capabilities} A self reference. * @throws {TypeError} If the `key` is not a string.
(key, value)
| 361 | * @throws {TypeError} If the `key` is not a string. |
| 362 | */ |
| 363 | set(key, value) { |
| 364 | if (typeof key !== 'string') { |
| 365 | throw new TypeError('Capability keys must be strings: ' + typeof key) |
| 366 | } |
| 367 | this.map_.set(key, value) |
| 368 | return this |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Sets whether a WebDriver session should implicitly accept self-signed, or |
no test coverage detected