MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / setProfile

Method setProfile

javascript/selenium-webdriver/firefox.js:259–265  ·  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

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

Callers 1

options_test.jsFile · 0.45

Calls 1

profile_Method · 0.95

Tested by

no test coverage detected