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

Function buildProfile

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

* @param {string} template path to an existing profile to use as a template. * @return {!Promise } a promise for the base64 encoded profile.

(template)

Source from the content-addressed store, hash-verified

145 * @return {!Promise<string>} a promise for the base64 encoded profile.
146 */
147async function buildProfile(template) {
148 let zip = new Zip()
149 return zip
150 .addDir(template)
151 .then(() => zip.toBuffer())
152 .then((buf) => buf.toString('base64'))
153}
154
155/**
156 * Configuration options for the FirefoxDriver.

Callers 1

[Symbols.serialize]Method · 0.85

Calls 3

addDirMethod · 0.95
toBufferMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected