selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
13 lines • 3.15 kB
HTML
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"><meta http-equiv="Content-Language" content="en"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>selenium-webdriver/firefox/profile</title><link href="dossier.css" rel="stylesheet" type="text/css"><header><div><form><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></header><main><article><div class="codelink"><a href="source/firefox/profile.js.src.html#l23">View Source</a></div><h1>module selenium-webdriver/firefox/profile</h1><p>Profile management module. This module is considered internal;
users should use <a href="module_selenium-webdriver_firefox.html"><code>selenium-webdriver/firefox</code></a>.</p>
<h2>Functions</h2><div id="decode" class="function"><div><h3>decode(<wbr>data)<span class="codelink"><a href="source/firefox/profile.js.src.html#l430">code »</a></span></h3><p>Decodes a base64 encoded profile.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>data<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd><p>The base64 encoded string.</p>
</dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a></code><dd><p>A promise for the path to the decoded
profile directory.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="loadUserPrefs" class="function"><div><h3>loadUserPrefs(<wbr>f)<span class="codelink"><a href="source/firefox/profile.js.src.html#l431">code »</a></span></h3><p>Parses a user.js file in a Firefox profile directory.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>f<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd><p>Path to the file to parse.</p>
</dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a></code><dd><p>A promise for the parsed preferences as
a JSON object. If the file does not exist, an empty object will be
returned.</p>
</dl></div></div></div></div><h2>Types</h2><dl><dt><a href="module_selenium-webdriver_firefox_profile_class_Profile.html">Profile</a><dd><p>Models a Firefox proifle directory for use with the FirefoxDriver.</p>
</dl></article><nav><h3><a href="index.html" tabindex="2">Overview</a></h3><div><input type="checkbox" id="nav-modules" checked/><label for="nav-modules"><h3><span class="selectable" tabindex="2">Modules</span></h3></label><div id="nav-modules-view"></div></div><div><input type="checkbox" id="nav-types" checked/><label for="nav-types"><h3><span class="selectable" tabindex="2">Types</span></h3></label><div id="nav-types-view"></div></div><h3><a href="Changes.html" tabindex="2">Changes</a></h3></nav></main><footer><div><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></div></footer><script src="types.js"></script><script src="dossier.js"></script>