UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

1 lines 25.3 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>functionmock.js</title><link href="../../../../dossier.css" rel="stylesheet" type="text/css"><header><div><form><div><input type="search" placeholder="Search"></div></form></div></header><main><article class="srcfile"><h1>lib/goog/testing/functionmock.js</h1><div><table><tr><td><a id="l1"></a><a href="#l1">1</a><td>// Copyright 2008 The Closure Library Authors. All Rights Reserved.<tr><td><a id="l2"></a><a href="#l2">2</a><td>//<tr><td><a id="l3"></a><a href="#l3">3</a><td>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<tr><td><a id="l4"></a><a href="#l4">4</a><td>// you may not use this file except in compliance with the License.<tr><td><a id="l5"></a><a href="#l5">5</a><td>// You may obtain a copy of the License at<tr><td><a id="l6"></a><a href="#l6">6</a><td>//<tr><td><a id="l7"></a><a href="#l7">7</a><td>// http://www.apache.org/licenses/LICENSE-2.0<tr><td><a id="l8"></a><a href="#l8">8</a><td>//<tr><td><a id="l9"></a><a href="#l9">9</a><td>// Unless required by applicable law or agreed to in writing, software<tr><td><a id="l10"></a><a href="#l10">10</a><td>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,<tr><td><a id="l11"></a><a href="#l11">11</a><td>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<tr><td><a id="l12"></a><a href="#l12">12</a><td>// See the License for the specific language governing permissions and<tr><td><a id="l13"></a><a href="#l13">13</a><td>// limitations under the License.<tr><td><a id="l14"></a><a href="#l14">14</a><td><tr><td><a id="l15"></a><a href="#l15">15</a><td>/**<tr><td><a id="l16"></a><a href="#l16">16</a><td> * @fileoverview Enable mocking of functions not attached to objects<tr><td><a id="l17"></a><a href="#l17">17</a><td> * whether they be global / top-level or anonymous methods / closures.<tr><td><a id="l18"></a><a href="#l18">18</a><td> *<tr><td><a id="l19"></a><a href="#l19">19</a><td> * See the unit tests for usage.<tr><td><a id="l20"></a><a href="#l20">20</a><td> *<tr><td><a id="l21"></a><a href="#l21">21</a><td> */<tr><td><a id="l22"></a><a href="#l22">22</a><td><tr><td><a id="l23"></a><a href="#l23">23</a><td>goog.provide(&#39;goog.testing&#39;);<tr><td><a id="l24"></a><a href="#l24">24</a><td>goog.provide(&#39;goog.testing.FunctionMock&#39;);<tr><td><a id="l25"></a><a href="#l25">25</a><td>goog.provide(&#39;goog.testing.GlobalFunctionMock&#39;);<tr><td><a id="l26"></a><a href="#l26">26</a><td>goog.provide(&#39;goog.testing.MethodMock&#39;);<tr><td><a id="l27"></a><a href="#l27">27</a><td><tr><td><a id="l28"></a><a href="#l28">28</a><td>goog.require(&#39;goog.object&#39;);<tr><td><a id="l29"></a><a href="#l29">29</a><td>goog.require(&#39;goog.testing.LooseMock&#39;);<tr><td><a id="l30"></a><a href="#l30">30</a><td>goog.require(&#39;goog.testing.Mock&#39;);<tr><td><a id="l31"></a><a href="#l31">31</a><td>goog.require(&#39;goog.testing.PropertyReplacer&#39;);<tr><td><a id="l32"></a><a href="#l32">32</a><td>goog.require(&#39;goog.testing.StrictMock&#39;);<tr><td><a id="l33"></a><a href="#l33">33</a><td><tr><td><a id="l34"></a><a href="#l34">34</a><td><tr><td><a id="l35"></a><a href="#l35">35</a><td>/**<tr><td><a id="l36"></a><a href="#l36">36</a><td> * Class used to mock a function. Useful for mocking closures and anonymous<tr><td><a id="l37"></a><a href="#l37">37</a><td> * callbacks etc. Creates a function object that extends goog.testing.Mock.<tr><td><a id="l38"></a><a href="#l38">38</a><td> * @param {string=} opt_functionName The optional name of the function to mock.<tr><td><a id="l39"></a><a href="#l39">39</a><td> * Set to &#39;[anonymous mocked function]&#39; if not passed in.<tr><td><a id="l40"></a><a href="#l40">40</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l41"></a><a href="#l41">41</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l42"></a><a href="#l42">42</a><td> * @return {!goog.testing.MockInterface} The mocked function.<tr><td><a id="l43"></a><a href="#l43">43</a><td> * @suppress {missingProperties} Mocks do not fit in the type system well.<tr><td><a id="l44"></a><a href="#l44">44</a><td> */<tr><td><a id="l45"></a><a href="#l45">45</a><td>goog.testing.FunctionMock = function(opt_functionName, opt_strictness) {<tr><td><a id="l46"></a><a href="#l46">46</a><td> var fn = function() {<tr><td><a id="l47"></a><a href="#l47">47</a><td> var args = Array.prototype.slice.call(arguments);<tr><td><a id="l48"></a><a href="#l48">48</a><td> args.splice(0, 0, opt_functionName || &#39;[anonymous mocked function]&#39;);<tr><td><a id="l49"></a><a href="#l49">49</a><td> return fn.$mockMethod.apply(fn, args);<tr><td><a id="l50"></a><a href="#l50">50</a><td> };<tr><td><a id="l51"></a><a href="#l51">51</a><td> var base = opt_strictness === goog.testing.Mock.LOOSE ?<tr><td><a id="l52"></a><a href="#l52">52</a><td> goog.testing.LooseMock : goog.testing.StrictMock;<tr><td><a id="l53"></a><a href="#l53">53</a><td> goog.object.extend(fn, new base({}));<tr><td><a id="l54"></a><a href="#l54">54</a><td><tr><td><a id="l55"></a><a href="#l55">55</a><td> return /** @type {!goog.testing.MockInterface} */ (fn);<tr><td><a id="l56"></a><a href="#l56">56</a><td>};<tr><td><a id="l57"></a><a href="#l57">57</a><td><tr><td><a id="l58"></a><a href="#l58">58</a><td><tr><td><a id="l59"></a><a href="#l59">59</a><td>/**<tr><td><a id="l60"></a><a href="#l60">60</a><td> * Mocks an existing function. Creates a goog.testing.FunctionMock<tr><td><a id="l61"></a><a href="#l61">61</a><td> * and registers it in the given scope with the name specified by functionName.<tr><td><a id="l62"></a><a href="#l62">62</a><td> * @param {Object} scope The scope of the method to be mocked out.<tr><td><a id="l63"></a><a href="#l63">63</a><td> * @param {string} functionName The name of the function we&#39;re going to mock.<tr><td><a id="l64"></a><a href="#l64">64</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l65"></a><a href="#l65">65</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l66"></a><a href="#l66">66</a><td> * @return {!goog.testing.MockInterface} The mocked method.<tr><td><a id="l67"></a><a href="#l67">67</a><td> */<tr><td><a id="l68"></a><a href="#l68">68</a><td>goog.testing.MethodMock = function(scope, functionName, opt_strictness) {<tr><td><a id="l69"></a><a href="#l69">69</a><td> if (!(functionName in scope)) {<tr><td><a id="l70"></a><a href="#l70">70</a><td> throw Error(functionName + &#39; is not a property of the given scope.&#39;);<tr><td><a id="l71"></a><a href="#l71">71</a><td> }<tr><td><a id="l72"></a><a href="#l72">72</a><td><tr><td><a id="l73"></a><a href="#l73">73</a><td> var fn = goog.testing.FunctionMock(functionName, opt_strictness);<tr><td><a id="l74"></a><a href="#l74">74</a><td><tr><td><a id="l75"></a><a href="#l75">75</a><td> fn.$propertyReplacer_ = new goog.testing.PropertyReplacer();<tr><td><a id="l76"></a><a href="#l76">76</a><td> fn.$propertyReplacer_.set(scope, functionName, fn);<tr><td><a id="l77"></a><a href="#l77">77</a><td> fn.$tearDown = goog.testing.MethodMock.$tearDown;<tr><td><a id="l78"></a><a href="#l78">78</a><td><tr><td><a id="l79"></a><a href="#l79">79</a><td> return fn;<tr><td><a id="l80"></a><a href="#l80">80</a><td>};<tr><td><a id="l81"></a><a href="#l81">81</a><td><tr><td><a id="l82"></a><a href="#l82">82</a><td><tr><td><a id="l83"></a><a href="#l83">83</a><td>/**<tr><td><a id="l84"></a><a href="#l84">84</a><td> * Resets the global function that we mocked back to its original state.<tr><td><a id="l85"></a><a href="#l85">85</a><td> * @this {goog.testing.MockInterface}<tr><td><a id="l86"></a><a href="#l86">86</a><td> */<tr><td><a id="l87"></a><a href="#l87">87</a><td>goog.testing.MethodMock.$tearDown = function() {<tr><td><a id="l88"></a><a href="#l88">88</a><td> this.$propertyReplacer_.reset();<tr><td><a id="l89"></a><a href="#l89">89</a><td>};<tr><td><a id="l90"></a><a href="#l90">90</a><td><tr><td><a id="l91"></a><a href="#l91">91</a><td><tr><td><a id="l92"></a><a href="#l92">92</a><td>/**<tr><td><a id="l93"></a><a href="#l93">93</a><td> * Mocks a global / top-level function. Creates a goog.testing.MethodMock<tr><td><a id="l94"></a><a href="#l94">94</a><td> * in the global scope with the name specified by functionName.<tr><td><a id="l95"></a><a href="#l95">95</a><td> * @param {string} functionName The name of the function we&#39;re going to mock.<tr><td><a id="l96"></a><a href="#l96">96</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l97"></a><a href="#l97">97</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l98"></a><a href="#l98">98</a><td> * @return {!goog.testing.MockInterface} The mocked global function.<tr><td><a id="l99"></a><a href="#l99">99</a><td> */<tr><td><a id="l100"></a><a href="#l100">100</a><td>goog.testing.GlobalFunctionMock = function(functionName, opt_strictness) {<tr><td><a id="l101"></a><a href="#l101">101</a><td> return goog.testing.MethodMock(goog.global, functionName, opt_strictness);<tr><td><a id="l102"></a><a href="#l102">102</a><td>};<tr><td><a id="l103"></a><a href="#l103">103</a><td><tr><td><a id="l104"></a><a href="#l104">104</a><td><tr><td><a id="l105"></a><a href="#l105">105</a><td>/**<tr><td><a id="l106"></a><a href="#l106">106</a><td> * Convenience method for creating a mock for a function.<tr><td><a id="l107"></a><a href="#l107">107</a><td> * @param {string=} opt_functionName The optional name of the function to mock<tr><td><a id="l108"></a><a href="#l108">108</a><td> * set to &#39;[anonymous mocked function]&#39; if not passed in.<tr><td><a id="l109"></a><a href="#l109">109</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l110"></a><a href="#l110">110</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l111"></a><a href="#l111">111</a><td> * @return {goog.testing.MockInterface} The mocked function.<tr><td><a id="l112"></a><a href="#l112">112</a><td> */<tr><td><a id="l113"></a><a href="#l113">113</a><td>goog.testing.createFunctionMock = function(opt_functionName, opt_strictness) {<tr><td><a id="l114"></a><a href="#l114">114</a><td> return goog.testing.FunctionMock(opt_functionName, opt_strictness);<tr><td><a id="l115"></a><a href="#l115">115</a><td>};<tr><td><a id="l116"></a><a href="#l116">116</a><td><tr><td><a id="l117"></a><a href="#l117">117</a><td><tr><td><a id="l118"></a><a href="#l118">118</a><td>/**<tr><td><a id="l119"></a><a href="#l119">119</a><td> * Convenience method for creating a mock for a method.<tr><td><a id="l120"></a><a href="#l120">120</a><td> * @param {Object} scope The scope of the method to be mocked out.<tr><td><a id="l121"></a><a href="#l121">121</a><td> * @param {string} functionName The name of the function we&#39;re going to mock.<tr><td><a id="l122"></a><a href="#l122">122</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l123"></a><a href="#l123">123</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l124"></a><a href="#l124">124</a><td> * @return {!goog.testing.MockInterface} The mocked global function.<tr><td><a id="l125"></a><a href="#l125">125</a><td> */<tr><td><a id="l126"></a><a href="#l126">126</a><td>goog.testing.createMethodMock = function(scope, functionName, opt_strictness) {<tr><td><a id="l127"></a><a href="#l127">127</a><td> return goog.testing.MethodMock(scope, functionName, opt_strictness);<tr><td><a id="l128"></a><a href="#l128">128</a><td>};<tr><td><a id="l129"></a><a href="#l129">129</a><td><tr><td><a id="l130"></a><a href="#l130">130</a><td><tr><td><a id="l131"></a><a href="#l131">131</a><td>/**<tr><td><a id="l132"></a><a href="#l132">132</a><td> * Convenience method for creating a mock for a constructor. Copies class<tr><td><a id="l133"></a><a href="#l133">133</a><td> * members to the mock.<tr><td><a id="l134"></a><a href="#l134">134</a><td> *<tr><td><a id="l135"></a><a href="#l135">135</a><td> * &lt;p&gt;When mocking a constructor to return a mocked instance, remember to create<tr><td><a id="l136"></a><a href="#l136">136</a><td> * the instance mock before mocking the constructor. If you mock the constructor<tr><td><a id="l137"></a><a href="#l137">137</a><td> * first, then the mock framework will be unable to examine the prototype chain<tr><td><a id="l138"></a><a href="#l138">138</a><td> * when creating the mock instance.<tr><td><a id="l139"></a><a href="#l139">139</a><td> * @param {Object} scope The scope of the constructor to be mocked out.<tr><td><a id="l140"></a><a href="#l140">140</a><td> * @param {string} constructorName The name of the constructor we&#39;re going to<tr><td><a id="l141"></a><a href="#l141">141</a><td> * mock.<tr><td><a id="l142"></a><a href="#l142">142</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l143"></a><a href="#l143">143</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l144"></a><a href="#l144">144</a><td> * @return {!goog.testing.MockInterface} The mocked constructor.<tr><td><a id="l145"></a><a href="#l145">145</a><td> */<tr><td><a id="l146"></a><a href="#l146">146</a><td>goog.testing.createConstructorMock = function(scope, constructorName,<tr><td><a id="l147"></a><a href="#l147">147</a><td> opt_strictness) {<tr><td><a id="l148"></a><a href="#l148">148</a><td> var realConstructor = scope[constructorName];<tr><td><a id="l149"></a><a href="#l149">149</a><td> var constructorMock = goog.testing.MethodMock(scope, constructorName,<tr><td><a id="l150"></a><a href="#l150">150</a><td> opt_strictness);<tr><td><a id="l151"></a><a href="#l151">151</a><td><tr><td><a id="l152"></a><a href="#l152">152</a><td> // Copy class members from the real constructor to the mock. Do not copy<tr><td><a id="l153"></a><a href="#l153">153</a><td> // the closure superClass_ property (see goog.inherits), the built-in<tr><td><a id="l154"></a><a href="#l154">154</a><td> // prototype property, or properties added to Function.prototype<tr><td><a id="l155"></a><a href="#l155">155</a><td> // (see goog.MODIFY_FUNCTION_PROTOTYPES in closure/base.js).<tr><td><a id="l156"></a><a href="#l156">156</a><td> for (var property in realConstructor) {<tr><td><a id="l157"></a><a href="#l157">157</a><td> if (property != &#39;superClass_&#39; &amp;&amp;<tr><td><a id="l158"></a><a href="#l158">158</a><td> property != &#39;prototype&#39; &amp;&amp;<tr><td><a id="l159"></a><a href="#l159">159</a><td> realConstructor.hasOwnProperty(property)) {<tr><td><a id="l160"></a><a href="#l160">160</a><td> constructorMock[property] = realConstructor[property];<tr><td><a id="l161"></a><a href="#l161">161</a><td> }<tr><td><a id="l162"></a><a href="#l162">162</a><td> }<tr><td><a id="l163"></a><a href="#l163">163</a><td> return constructorMock;<tr><td><a id="l164"></a><a href="#l164">164</a><td>};<tr><td><a id="l165"></a><a href="#l165">165</a><td><tr><td><a id="l166"></a><a href="#l166">166</a><td><tr><td><a id="l167"></a><a href="#l167">167</a><td>/**<tr><td><a id="l168"></a><a href="#l168">168</a><td> * Convenience method for creating a mocks for a global / top-level function.<tr><td><a id="l169"></a><a href="#l169">169</a><td> * @param {string} functionName The name of the function we&#39;re going to mock.<tr><td><a id="l170"></a><a href="#l170">170</a><td> * @param {number=} opt_strictness One of goog.testing.Mock.LOOSE or<tr><td><a id="l171"></a><a href="#l171">171</a><td> * goog.testing.Mock.STRICT. The default is STRICT.<tr><td><a id="l172"></a><a href="#l172">172</a><td> * @return {!goog.testing.MockInterface} The mocked global function.<tr><td><a id="l173"></a><a href="#l173">173</a><td> */<tr><td><a id="l174"></a><a href="#l174">174</a><td>goog.testing.createGlobalFunctionMock = function(functionName, opt_strictness) {<tr><td><a id="l175"></a><a href="#l175">175</a><td> return goog.testing.GlobalFunctionMock(functionName, opt_strictness);<tr><td><a id="l176"></a><a href="#l176">176</a><td>};</table></div></article><nav><h3><a href="../../../../index.html">Overview</a></h3><div><input type="checkbox" id="nav-modules" checked/><label for="nav-modules"><h3>Modules</h3></label><div><ul><li><a href="../../../../module_selenium-webdriver.html">selenium-webdriver</a><li><a href="../../../../module_selenium-webdriver__base.html">selenium-webdriver/_base</a><li><a href="../../../../module_selenium-webdriver_builder.html">selenium-webdriver/builder</a><li><a href="../../../../module_selenium-webdriver_chrome.html">selenium-webdriver/chrome</a><li><a href="../../../../module_selenium-webdriver_error.html">selenium-webdriver/error</a><li><a href="../../../../module_selenium-webdriver_executors.html">selenium-webdriver/executors</a><li><a href="../../../../module_selenium-webdriver_firefox.html">selenium-webdriver/firefox</a><li><a href="../../../../module_selenium-webdriver_firefox_binary.html">selenium-webdriver/firefox/binary</a><li><a href="../../../../module_selenium-webdriver_firefox_extension.html">selenium-webdriver/firefox/extension</a><li><a href="../../../../module_selenium-webdriver_firefox_profile.html">selenium-webdriver/firefox/profile</a><li><a href="../../../../module_selenium-webdriver_http.html">selenium-webdriver/http</a><li><a href="../../../../module_selenium-webdriver_http_util.html">selenium-webdriver/http/util</a><li><a href="../../../../module_selenium-webdriver_ie.html">selenium-webdriver/ie</a><li><a href="../../../../module_selenium-webdriver_io.html">selenium-webdriver/io</a><li><a href="../../../../module_selenium-webdriver_io_exec.html">selenium-webdriver/io/exec</a><li><a href="../../../../module_selenium-webdriver_net.html">selenium-webdriver/net</a><li><a href="../../../../module_selenium-webdriver_net_portprober.html">selenium-webdriver/net/portprober</a><li><a href="../../../../module_selenium-webdriver_opera.html">selenium-webdriver/opera</a><li><a href="../../../../module_selenium-webdriver_phantomjs.html">selenium-webdriver/phantomjs</a><li><a href="../../../../module_selenium-webdriver_proxy.html">selenium-webdriver/proxy</a><li><a href="../../../../module_selenium-webdriver_remote.html">selenium-webdriver/remote</a><li><a href="../../../../module_selenium-webdriver_safari.html">selenium-webdriver/safari</a><li><a href="../../../../module_selenium-webdriver_testing.html">selenium-webdriver/testing</a><li><a href="../../../../module_selenium-webdriver_testing_assert.html">selenium-webdriver/testing/assert</a></ul></div></div><div><input type="checkbox" id="nav-types" checked/><label for="nav-types"><h3>Types</h3></label><div><ul><li><a href="../../../../namespace_bot.html">bot</a><li><a href="../../../../class_bot_Error.html">bot.Error</a><li><a href="../../../../enum_bot_Error_State.html">bot.Error.State</a><li><a href="../../../../enum_bot_ErrorCode.html">bot.ErrorCode</a><li><a href="../../../../namespace_bot_json.html">bot.json</a><li><a href="../../../../namespace_bot_response.html">bot.response</a><li><a href="../../../../namespace_bot_userAgent.html">bot.userAgent</a><li><a href="../../../../namespace_webdriver.html">webdriver</a><li><a href="../../../../class_webdriver_ActionSequence.html">webdriver.ActionSequence</a><li><a href="../../../../class_webdriver_Alert.html">webdriver.Alert</a><li><a href="../../../../class_webdriver_AlertPromise.html">webdriver.AlertPromise</a><li><a href="../../../../enum_webdriver_Browser.html">webdriver.Browser</a><li><a href="../../../../enum_webdriver_Button.html">webdriver.Button</a><li><a href="../../../../namespace_webdriver_By.html">webdriver.By</a><li><a href="../../../../class_webdriver_Capabilities.html">webdriver.Capabilities</a><li><a href="../../../../enum_webdriver_Capability.html">webdriver.Capability</a><li><a href="../../../../class_webdriver_Command.html">webdriver.Command</a><li><a href="../../../../interface_webdriver_CommandExecutor.html">webdriver.CommandExecutor</a><li><a href="../../../../enum_webdriver_CommandName.html">webdriver.CommandName</a><li><a href="../../../../class_webdriver_EventEmitter.html">webdriver.EventEmitter</a><li><a href="../../../../class_webdriver_FileDetector.html">webdriver.FileDetector</a><li><a href="../../../../enum_webdriver_Key.html">webdriver.Key</a><li><a href="../../../../class_webdriver_Locator.html">webdriver.Locator</a><li><a href="../../../../class_webdriver_Serializable.html">webdriver.Serializable</a><li><a href="../../../../class_webdriver_Session.html">webdriver.Session</a><li><a href="../../../../class_webdriver_TouchSequence.html">webdriver.TouchSequence</a><li><a href="../../../../class_webdriver_UnhandledAlertError.html">webdriver.UnhandledAlertError</a><li><a href="../../../../class_webdriver_WebDriver.html">webdriver.WebDriver</a><li><a href="../../../../class_webdriver_WebDriver_Logs.html">webdriver.WebDriver.Logs</a><li><a href="../../../../class_webdriver_WebDriver_Navigation.html">webdriver.WebDriver.Navigation</a><li><a href="../../../../class_webdriver_WebDriver_Options.html">webdriver.WebDriver.Options</a><li><a href="../../../../class_webdriver_WebDriver_TargetLocator.html">webdriver.WebDriver.TargetLocator</a><li><a href="../../../../class_webdriver_WebDriver_Timeouts.html">webdriver.WebDriver.Timeouts</a><li><a href="../../../../class_webdriver_WebDriver_Window.html">webdriver.WebDriver.Window</a><li><a href="../../../../class_webdriver_WebElement.html">webdriver.WebElement</a><li><a href="../../../../class_webdriver_WebElementPromise.html">webdriver.WebElementPromise</a><li><a href="../../../../namespace_webdriver_http.html">webdriver.http</a><li><a href="../../../../interface_webdriver_http_Client.html">webdriver.http.Client</a><li><a href="../../../../class_webdriver_http_Executor.html">webdriver.http.Executor</a><li><a href="../../../../class_webdriver_http_Request.html">webdriver.http.Request</a><li><a href="../../../../class_webdriver_http_Response.html">webdriver.http.Response</a><li><a href="../../../../namespace_webdriver_logging.html">webdriver.logging</a><li><a href="../../../../class_webdriver_logging_Entry.html">webdriver.logging.Entry</a><li><a href="../../../../class_webdriver_logging_Level.html">webdriver.logging.Level</a><li><a href="../../../../class_webdriver_logging_LogRecord.html">webdriver.logging.LogRecord</a><li><a href="../../../../class_webdriver_logging_Logger.html">webdriver.logging.Logger</a><li><a href="../../../../class_webdriver_logging_Preferences.html">webdriver.logging.Preferences</a><li><a href="../../../../enum_webdriver_logging_Type.html">webdriver.logging.Type</a><li><a href="../../../../namespace_webdriver_promise.html">webdriver.promise</a><li><a href="../../../../class_webdriver_promise_CancellationError.html">webdriver.promise.CancellationError</a><li><a href="../../../../class_webdriver_promise_ControlFlow.html">webdriver.promise.ControlFlow</a><li><a href="../../../../enum_webdriver_promise_ControlFlow_EventType.html">webdriver.promise.ControlFlow.EventType</a><li><a href="../../../../class_webdriver_promise_Deferred.html">webdriver.promise.Deferred</a><li><a href="../../../../class_webdriver_promise_Promise.html">webdriver.promise.Promise</a><li><a href="../../../../interface_webdriver_promise_Thenable.html">webdriver.promise.Thenable</a><li><a href="../../../../namespace_webdriver_stacktrace.html">webdriver.stacktrace</a><li><a href="../../../../class_webdriver_stacktrace_Frame.html">webdriver.stacktrace.Frame</a><li><a href="../../../../class_webdriver_stacktrace_Snapshot.html">webdriver.stacktrace.Snapshot</a><li><a href="../../../../namespace_webdriver_testing.html">webdriver.testing</a><li><a href="../../../../class_webdriver_testing_Assertion.html">webdriver.testing.Assertion</a><li><a href="../../../../class_webdriver_testing_Assertion_DelegatingMatcher_.html">webdriver.testing.Assertion.DelegatingMatcher_</a><li><a href="../../../../class_webdriver_testing_ContainsMatcher.html">webdriver.testing.ContainsMatcher</a><li><a href="../../../../class_webdriver_testing_NegatedAssertion.html">webdriver.testing.NegatedAssertion</a><li><a href="../../../../namespace_webdriver_testing_assert.html">webdriver.testing.assert</a><li><a href="../../../../namespace_webdriver_testing_asserts.html">webdriver.testing.asserts</a><li><a href="../../../../namespace_webdriver_until.html">webdriver.until</a><li><a href="../../../../class_webdriver_until_Condition.html">webdriver.until.Condition</a></ul></div></div><h3><a href="../../../../Changes.html">Changes</a></h3></nav></main><div class="pre-footer"><div></div></div><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>