selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
20 lines • 6.23 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>Frame</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>Namespace:</b> <a href="namespace_webdriver_stacktrace.html">webdriver.stacktrace</a></div><div class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l135">View Source</a></div><h1>class Frame</h1><p>Class representing one stack frame.</p>
<h3>new Frame(<wbr>context, name, alias, path)</h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>context<code>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined">undefined</a>)</code><dd><p>Context object, empty in case of global
functions or if the browser doesn't provide this information.</p>
<dt>name<code>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined">undefined</a>)</code><dd><p>Function name, empty in case of anonymous
functions.</p>
<dt>alias<code>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined">undefined</a>)</code><dd><p>Alias of the function if available. For
example the function name will be 'c' and the alias will be 'b' if the
function is defined as <code>a.b = function c() {};</code>.</p>
<dt>path<code>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined">undefined</a>)</code><dd><p>File path or URL including line number and
optionally column number separated by colons.</p>
</dl></div></div><h2>Instance Methods</h2><div id="getColumn" class="function"><div><h3>getColumn()<span class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l206">code »</a></span></h3><div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd><p>The column number if known and -1 if it is unknown.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="getLine" class="function"><div><h3>getLine()<span class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l198">code »</a></span></h3><div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd><p>The line number if known or -1 if it is unknown.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="getName" class="function"><div><h3>getName()<span class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l182">code »</a></span></h3><div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd><p>The function name or empty string if the function is
anonymous and the object field which it's assigned to is unknown.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="getUrl" class="function"><div><h3>getUrl()<span class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l190">code »</a></span></h3><div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd><p>The url or empty string if it is unknown.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="isAnonymous" class="function"><div><h3>isAnonymous()<span class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l214">code »</a></span></h3><div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code><dd><p>Whether the stack frame contains an anonymous function.</p>
</dl></div></div></div></div><hr class="fn-sep"><div id="toString" class="function"><div><h3>toString()<span class="codelink"><a href="source/lib/webdriver/stacktrace.js.src.html#l225">code »</a></span></h3><p>Converts this frame to its string representation using V8's stack trace
format: http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi</p>
<div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd><p>The string representation of this frame.</p>
</dl></div></div></div></div><h2>Instance Properties</h2><div id="column" class="property"><dl><dt><a href="source/lib/webdriver/stacktrace.js.src.html#l162">column</a><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd>No description.</dl></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>