UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

9 lines 2.41 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>Serializable</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.html">selenium-webdriver</a></div><div class="codelink"><a href="source/index.js.src.html#l62">View Source</a></div><h1>class Serializable&lt;T&gt;</h1><dl><dt>Alias for <code><a href="class_webdriver_Serializable.html">webdriver.Serializable</a></code></dl><p>Defines an object that can be asynchronously serialized to its WebDriver wire representation.</p> <h3>new Serializable()</h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dd>None.</dl></div></div><h2>Instance Methods</h2><div id="serialize" class="function"><div><h3>serialize()<span class="codelink"><a href="source/lib/webdriver/serializable.js.src.html#l41">code »</a></span></h3><p>Returns either this instance&#39;s serialized represention, if immediately available, or a promise for its serialized representation. This function is conceptually equivalent to objects that have a <code>toJSON()</code> property, except the serialize() result may be a promise or an object containing a promise (which are not directly JSON friendly).</p> <div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code>(T|IThenable&lt;T&gt;)</code><dd><p>This instance&#39;s serialized wire format.</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>