UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

15 lines 5.5 kB
<!DOCTYPE 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>Entry</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_logging.html">webdriver.logging</a></div><div class="codelink"><a href="source/lib/webdriver/logging.js.src.html#l347">View Source</a></div><h1>class Entry</h1><p>A single log entry recorded by a WebDriver component, such as a remote WebDriver server.</p> <h3>new Entry(<wbr>level, message, opt_timestamp, opt_type)</h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>level<code>(<a href="class_webdriver_logging_Level.html">webdriver.logging.Level</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>)</code><dd><p>The entry level.</p> <dt>message<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd><p>The log message.</p> <dt>opt_timestamp<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>=</code><dd><p>The time this entry was generated, in milliseconds since 0:00:00, January 1, 1970 UTC. If omitted, the current time will be used.</p> <dt>opt_type<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>=</code><dd><p>The log type, if known.</p> </dl></div></div><h2>Instance Methods</h2><div id="toJSON" class="function"><div><h3>toJSON(<wbr>arg0)<span class="codelink"><a href="source/lib/webdriver/logging.js.src.html#l338">code »</a></span></h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>arg0<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>=</code></dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code>{level: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, message: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, timestamp: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>, type: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>}</code><dd><p>The JSON representation of this entry.</p> </dl></div></div></div></div><h2>Instance Properties</h2><div id="level" class="property"><dl><dt><a href="source/lib/webdriver/logging.js.src.html#l305">level</a><code><a href="class_webdriver_logging_Level.html">webdriver.logging.Level</a></code><dd>No description.</dl></div><div id="message" class="property"><dl><dt><a href="source/lib/webdriver/logging.js.src.html#l308">message</a><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>No description.</dl></div><div id="timestamp" class="property"><dl><dt><a href="source/lib/webdriver/logging.js.src.html#l311">timestamp</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><div id="type" class="property"><dl><dt><a href="source/lib/webdriver/logging.js.src.html#l314">type</a><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>No description.</dl></div><h2>Static Functions</h2><div id="Entry.fromClosureLogRecord" class="function"><div><h3>Entry.fromClosureLogRecord(<wbr>logRecord, opt_type)<span class="codelink"><a href="source/lib/webdriver/logging.js.src.html#l325">code »</a></span></h3><p>Converts a <a href="class_webdriver_logging_LogRecord.html"><code>goog.debug.LogRecord</code></a> into a <a href="class_webdriver_logging_Entry.html"><code>webdriver.logging.Entry</code></a>.</p> <div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>logRecord<code><a href="class_webdriver_logging_LogRecord.html">webdriver.logging.LogRecord</a></code><dd><p>The record to convert.</p> <dt>opt_type<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>=</code><dd><p>The log type.</p> </dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="class_webdriver_logging_Entry.html">webdriver.logging.Entry</a></code><dd><p>The converted entry.</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>