selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
12 lines • 3.27 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>DeferredExecutor</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_executors.html">selenium-webdriver/executors</a></div><div class="codelink"><a href="source/executors.js.src.html#l51">View Source</a></div><h1>class DeferredExecutor</h1><dl><dt>All implemented interfaces<dd><code><a href="interface_webdriver_CommandExecutor.html">webdriver.CommandExecutor</a></code></dl><p>Wraps a promised <a href="interface_webdriver_CommandExecutor.html"><code>webdriver.CommandExecutor</code></a>, ensuring no commands
are executed until the wrapped executor has been fully built.</p>
<h3>new DeferredExecutor(<wbr>delegate)</h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>delegate<code><a href="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a><<a href="interface_webdriver_CommandExecutor.html">webdriver.CommandExecutor</a>></code><dd><p>The
promised delegate.</p>
</dl></div></div><h2>Instance Methods</h2><div id="execute" class="function"><div><h3>execute(<wbr>command, callback)<span class="codelink"><a href="source/executors.js.src.html#l40">code »</a></span></h3><p>Executes the given <code>command</code>. If there is an error executing the
command, the provided callback will be invoked with the offending error.
Otherwise, the callback will be invoked with a null Error and non-null
<a href="namespace_bot_response.html#response.ResponseObject"><code>bot.response.ResponseObject</code></a> object.</p>
<p><b>Specified by: </b><a href="interface_webdriver_CommandExecutor.html#execute">webdriver.CommandExecutor</a></p><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>command<code><a href="class_webdriver_Command.html">webdriver.Command</a></code><dd><p>The command to execute.</p>
<dt>callback<code>function(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a>, {status: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>, value: *}=): ?</code><dd><p>the function
to invoke when the command response is ready.</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>