UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

13 lines 3.81 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>Assertion.DelegatingMatcher_</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_testing.html">webdriver.testing</a></div><div class="codelink"><a href="source/lib/webdriver/testing/asserts.js.src.html#l123">View Source</a></div><h1>class Assertion.DelegatingMatcher_</h1><dl><dt>All implemented interfaces<dd><code>goog.labs.testing.Matcher</code></dl><p>Wraps an object literal implementing the Matcher interface. This is used to appease the Closure compiler, which will not treat an object literal as implementing an interface.</p> <h3>new Assertion.DelegatingMatcher_(<wbr>obj)</h3><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>obj<code>{describe: function(): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, matches: function(*): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a>}</code><dd><p>The object literal to delegate to.</p> </dl></div></div><h2>Instance Methods</h2><div id="describe" class="function"><div><h3>describe(<wbr>value, opt_description)<span class="codelink"><a href="source/lib/webdriver/testing/asserts.js.src.html#l131">code »</a></span></h3><p>Describes why the matcher failed.</p> <p><b>Specified by: </b><a href="#describe">goog.labs.testing.Matcher</a></p><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>value<code>*</code><dd><p>The value that didn&#39;t match.</p> <dt>opt_description<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>=</code><dd><p>A partial description to which the reason will be appended.</p> </dl></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>Description of why the matcher failed.</p> </dl></div></div></div></div><hr class="fn-sep"><div id="matches" class="function"><div><h3>matches(<wbr>value)<span class="codelink"><a href="source/lib/webdriver/testing/asserts.js.src.html#l126">code »</a></span></h3><p>Determines whether a value matches the constraints of the match.</p> <p><b>Specified by: </b><a href="#matches">goog.labs.testing.Matcher</a></p><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>value<code>*</code><dd><p>The object to match.</p> </dl></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 input value matches this matcher.</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>