* 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)
| 257 | * @throws {TypeError} if profile is not a string. |
| 258 | */ |
| 259 | setProfile(profile) { |
| 260 | if (typeof profile !== 'string') { |
| 261 | throw TypeError(`profile must be a string, but got ${typeof profile}`) |
| 262 | } |
| 263 | this.profile_().template_ = profile |
| 264 | return this |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * Sets the binary to use. The binary may be specified as the path to a |