UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

18 lines 3.11 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>webdriver.testing.asserts</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="codelink"><a href="source/lib/webdriver/testing/asserts.js.src.html#l27">View Source</a></div><h1>namespace webdriver.testing.asserts</h1><h2>Functions</h2><div id="assertThat" class="function"><div><h3>assertThat(<wbr>failureMessageOrActualValue, actualValueOrMatcher, opt_matcher)<span class="codelink"><a href="source/lib/webdriver/testing/asserts.js.src.html#l446">code »</a></span></h3><div class="tags"><span>deprecated</span></div><p>Asserts that a matcher accepts a given value. This function has two signatures based on the number of arguments:</p> <p>Two arguments: assertThat(actualValue, matcher) Three arguments: assertThat(failureMessage, actualValue, matcher)</p> <dl><dt>Deprecated<dd><p>Use webdriver.testing.asserts.assert instead.</p> </dl><div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>failureMessageOrActualValue<code>*</code><dd><p>Either a failure message or the value to apply to the given matcher.</p> <dt>actualValueOrMatcher<code>*</code><dd><p>Either the value to apply to the given matcher, or the matcher itself.</p> <dt>opt_matcher<code>?goog.labs.testing.Matcher=</code><dd><p>The matcher to use; ignored unless this function is invoked with three arguments.</p> </dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code><a href="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a></code><dd><p>The assertion result.</p> </dl></div></div></div></div><hr class="fn-sep"><div id="equalTo" class="function"><div><h3>equalTo(<wbr>expected)<span class="codelink"><a href="source/lib/webdriver/testing/asserts.js.src.html#l467">code »</a></span></h3><p>Creates an equality matcher.</p> <div><div class="fn-details"><div><b>Parameters</b></div><dl><dt>expected<code>*</code><dd><p>The expected value.</p> </dl></div><div class="fn-details"><div><b>Returns</b></div><dl><dt><code>goog.labs.testing.Matcher</code><dd><p>The new 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>