selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
2 lines • 7.88 kB
HTML
<meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.testing.FunctionCall</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Class goog.testing.FunctionCall</h1><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l158">code »</a></header><section><p>Struct for a single function call.<h2>Constructor</h2><div class="ctor wrap-details public"><div><div class="ctor"><span class="member">goog.testing.FunctionCall <span class="args">( func, thisContext, args, ret, error )</span></span></div><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>func: <code class="type">!<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></code><dd>The called function.<dt>thisContext: <code class="type">!<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code><dd><code >this</code> context of called function.<dt>args: <code class="type">!<a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments">Arguments</a></code><dd>Arguments of the called function.<dt>ret: <code class="type">*</code><dd>Return value of the function or undefined in case of error.<dt>error: <code class="type">*</code><dd>The error thrown by the function or null if none.</dl></table></div></div></div></section><div id="visibility-controls"><b>Show:</b><label for="show-public"><span><input type="checkbox" id="show-public" checked/></span>Public</label><label for="show-protected"><span><input type="checkbox" id="show-protected"/></span>Protected</label><label for="show-private"><span><input type="checkbox" id="show-private"/></span>Private</label></div><section id="instance-methods"><h2>Instance Methods</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l197">code »</a><span class="member"><a name="getArgument">getArgument</a> <span class="args">( index )</span> ⇒ <code class="type">*</code></span></div><p>Returns the nth argument of the called function.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>index: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd>0-based index of the argument.</dl><tr><th>Returns<tr><td><dl>The argument value or undefined if there is no such argument.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l187">code »</a><span class="member"><a name="getArguments">getArguments</a> <span class="args">( )</span> ⇒ <code class="type">!<a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>Arguments of the called function.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l213">code »</a><span class="member"><a name="getError">getError</a> <span class="args">( )</span> ⇒ <code class="type">*</code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>The error thrown by the function or null if none.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l170">code »</a><span class="member"><a name="getFunction">getFunction</a> <span class="args">( )</span> ⇒ <code class="type">!<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>The called function.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l205">code »</a><span class="member"><a name="getReturnValue">getReturnValue</a> <span class="args">( )</span> ⇒ <code class="type">*</code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>Return value of the function or undefined in case of error.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l179">code »</a><span class="member"><a name="getThis">getThis</a> <span class="args">( )</span> ⇒ <code class="type">!<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl><code >this</code> context of called function. It is the same as
the created object if the function is a constructor.</dl></table></div></details></div></div></section><section id="instance-properties"><h2>Instance Properties</h2><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l161">code »</a><span class="member"><a name="goog.testing.FunctionCall.prototype.arguments_">goog.testing.FunctionCall.prototype.arguments_</a> : <code class="type"><a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></code></span></div></summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l163">code »</a><span class="member"><a name="error_">error_</a> : <code class="type">*</code></span></div></summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l162">code »</a><span class="member"><a name="returnValue_">returnValue_</a> : <code class="type">*</code></span></div></summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/testing/recordfunction.js.src.html#l160">code »</a><span class="member"><a name="thisContext_">thisContext_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code></span></div></summary></details></div></div></section></main><nav id="topnav"><div><div id="menubutton"><label for="sidenav-toggle">Menu</label></div><form id="searchbox"><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></nav><nav id="sidenav"><input type="checkbox" id="sidenav-types-ctrl" /><input type="checkbox" id="sidenav-files-ctrl" /><input type="checkbox" id="sidenav-modules-ctrl" /><a id="sidenav-overview"><div><h4>Overview</h4></div></a><div id="sidenav-types"><label for="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><a href="license.html"><div><h4>License</h4></div></a></nav><div id="push-footer"></div></div><footer><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><script src="types.js"></script><script src="dossier.js"></script>