* Sets the path to an existing profile to use as a template for new browser * sessions. This profile will be copied for each new session - changes will * not be applied to the profile itself. * * @param {string} profile The profile to use. * @return {!Options} A self reference. * @
(profile)
| 352 | * @throws {TypeError} if profile is not a string. |
| 353 | */ |
| 354 | setProfile(profile) { |
| 355 | if (typeof profile !== 'string') { |
| 356 | throw TypeError(`profile must be a string, but got ${typeof profile}`) |
| 357 | } |
| 358 | this.profile_().template_ = profile |
| 359 | return this |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Sets the binary to use. The binary may be specified as the path to a |