selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
19 lines • 5.3 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>Options</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="parentlink"><b>Module:</b> <a href="module_selenium-webdriver_firefox.html">selenium-webdriver/firefox</a></div><div class="codelink"><a href="source/firefox/index.js.src.html#l315">View Source</a></div><h1>class Options</h1><p>Configuration options for the FirefoxDriver.</p>
<h3>new Options()</h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dd>None.</dl></div></div><h2>Instance Methods</h2><div id="setBinary" class="function"><div><h3>setBinary(<wbr>binary)<span class="codelink"><a href="source/firefox/index.js.src.html#l154">code »</a></span></h3><p>Sets the binary to use. The binary may be specified as the path to a Firefox
executable, or as a <a href="module_selenium-webdriver_firefox_class_Binary.html"><code>Binary</code></a> object.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>binary<code>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="module_selenium-webdriver_firefox_binary_class_Binary.html">Binary</a>)</code><dd><p>The binary to use.</p>
</dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="module_selenium-webdriver_firefox_class_Options.html">Options</a></code><dd><p>A self reference.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="setLoggingPreferences" class="function"><div><h3>setLoggingPreferences(<wbr>prefs)<span class="codelink"><a href="source/firefox/index.js.src.html#l168">code »</a></span></h3><p>Sets the logging preferences for the new session.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>prefs<code><a href="class_webdriver_logging_Preferences.html">webdriver.logging.Preferences</a></code><dd><p>The logging preferences.</p>
</dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="module_selenium-webdriver_firefox_class_Options.html">Options</a></code><dd><p>A self reference.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="setProfile" class="function"><div><h3>setProfile(<wbr>profile)<span class="codelink"><a href="source/firefox/index.js.src.html#l138">code »</a></span></h3><p>Sets the profile to use. The profile may be specified as a
<a href="module_selenium-webdriver_firefox_class_Profile.html"><code>Profile</code></a> object or as the path to an existing Firefox profile to use
as a template.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>profile<code>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="module_selenium-webdriver_firefox_profile_class_Profile.html">Profile</a>)</code><dd><p>The profile to use.</p>
</dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="module_selenium-webdriver_firefox_class_Options.html">Options</a></code><dd><p>A self reference.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="setProxy" class="function"><div><h3>setProxy(<wbr>proxy)<span class="codelink"><a href="source/firefox/index.js.src.html#l180">code »</a></span></h3><p>Sets the proxy to use.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>proxy<code><a href="module_selenium-webdriver.html">selenium-webdriver.ProxyConfig</a></code><dd><p>The proxy configuration to use.</p>
</dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="module_selenium-webdriver_firefox_class_Options.html">Options</a></code><dd><p>A self reference.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="toCapabilities" class="function"><div><h3>toCapabilities(<wbr>opt_remote)<span class="codelink"><a href="source/firefox/index.js.src.html#l191">code »</a></span></h3><p>Converts these options to a <a href="class_webdriver_Capabilities.html"><code>webdriver.Capabilities</code></a> instance.</p>
<div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>opt_remote<code>?</code></dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="class_webdriver_Capabilities.html">webdriver.Capabilities</a></code><dd><p>A new capabilities object.</p>
</dl></div></div></div></div></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>