MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / setProfile

Method setProfile

javascript/selenium-webdriver/firefox.js:354–360  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

options_test.jsFile · 0.45

Calls 1

profile_Method · 0.95

Tested by

no test coverage detected