You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><metacharset="UTF-8"><metahttp-equiv="Content-Language" content="en" /><title>webdriver.Alert</title><linkhref="dossier.css" rel="stylesheet" type="text/css"><divid="main-wrapper"><inputtype="checkbox" id="sidenav-toggle" /><main><header><h1>Class webdriver.Alert</h1><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2105">code »</a></header><section><p>Represents a modal dialog such as <code>alert</code>, <code>confirm</code>, or
1
+
<!DOCTYPE html><metacharset="UTF-8"><metahttp-equiv="Content-Language" content="en" /><title>webdriver.Alert</title><linkhref="dossier.css" rel="stylesheet" type="text/css"><divid="main-wrapper"><inputtype="checkbox" id="sidenav-toggle" /><main><header><h1>Class webdriver.Alert</h1><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2167">code »</a></header><section><p>Represents a modal dialog such as <code>alert</code>, <code>confirm</code>, or
2
2
<code>prompt</code>. Provides functions to retrieve the message displayed with
3
3
the alert, accept or dismiss the alert, and set the response text (in the
4
4
case of <code>prompt</code>).<h2>Constructor</h2><divclass="ctor wrap-details public"><div><divclass="ctor"><spanclass="member">webdriver.Alert <spanclass="args">( driver, text )</span></span></div><divclass="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>driver: <codeclass="type">!<ahref="class_webdriver_WebDriver.html">webdriver.WebDriver</a></code><dd>The driver controlling the browser this
5
-
alert is attached to.<dt>text: <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The message text displayed with this alert.</dl></table></div></div></div></section><divid="visibility-controls"><b>Show:</b><labelfor="show-public"><span><inputtype="checkbox" id="show-public" checked/></span>Public</label><labelfor="show-protected"><span><inputtype="checkbox" id="show-protected"/></span>Protected</label><labelfor="show-private"><span><inputtype="checkbox" id="show-private"/></span>Private</label></div><sectionid="instance-methods"><h2>Instance Methods</h2><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2130">code »</a><spanclass="member"><aname="accept">accept</a><spanclass="args">( )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<void></code></span></div><p>Accepts this alert.</summary><divclass="info"><table><tbody><tr><th>Returns<tr><td><dl>A promise that will be resolved
6
-
when this command has completed.</dl></table></div></details></div></div><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2142">code »</a><spanclass="member"><aname="dismiss">dismiss</a><spanclass="args">( )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<void></code></span></div><p>Dismisses this alert.</summary><divclass="info"><table><tbody><tr><th>Returns<tr><td><dl>A promise that will be resolved
7
-
when this command has completed.</dl></table></div></details></div></div><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2120">code »</a><spanclass="member"><aname="getText">getText</a><spanclass="args">( )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<<ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></code></span></div><p>Retrieves the message text displayed with this alert. For instance, if the
5
+
alert is attached to.<dt>text: <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The message text displayed with this alert.</dl></table></div></div></div></section><divid="visibility-controls"><b>Show:</b><labelfor="show-public"><span><inputtype="checkbox" id="show-public" checked/></span>Public</label><labelfor="show-protected"><span><inputtype="checkbox" id="show-protected"/></span>Protected</label><labelfor="show-private"><span><inputtype="checkbox" id="show-private"/></span>Private</label></div><sectionid="instance-methods"><h2>Instance Methods</h2><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2192">code »</a><spanclass="member"><aname="accept">accept</a><spanclass="args">( )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<void></code></span></div><p>Accepts this alert.</summary><divclass="info"><table><tbody><tr><th>Returns<tr><td><dl>A promise that will be resolved
6
+
when this command has completed.</dl></table></div></details></div></div><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2204">code »</a><spanclass="member"><aname="dismiss">dismiss</a><spanclass="args">( )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<void></code></span></div><p>Dismisses this alert.</summary><divclass="info"><table><tbody><tr><th>Returns<tr><td><dl>A promise that will be resolved
7
+
when this command has completed.</dl></table></div></details></div></div><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2182">code »</a><spanclass="member"><aname="getText">getText</a><spanclass="args">( )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<<ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></code></span></div><p>Retrieves the message text displayed with this alert. For instance, if the
8
8
alert were opened with alert("hello"), then this would return "hello".</summary><divclass="info"><table><tbody><tr><th>Returns<tr><td><dl>A promise that will be
9
-
resolved to the text displayed with this alert.</dl></table></div></details></div></div><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2157">code »</a><spanclass="member"><aname="sendKeys">sendKeys</a><spanclass="args">( text )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<void></code></span></div><p>Sets the response text on this alert. This command will return an error if
9
+
resolved to the text displayed with this alert.</dl></table></div></details></div></div><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2219">code »</a><spanclass="member"><aname="sendKeys">sendKeys</a><spanclass="args">( text )</span> ⇒ <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<void></code></span></div><p>Sets the response text on this alert. This command will return an error if
10
10
the underlying alert does not support response text (e.g. window.alert and
11
11
window.confirm).</summary><divclass="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>text: <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The text to set.</dl><tr><th>Returns<tr><td><dl>A promise that will be resolved
12
-
when this command has completed.</dl></table></div></details></div></div></section><sectionid="instance-properties"><h2>Instance Properties</h2><divclass="wrap-details private"><div><details><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2107">code »</a><spanclass="member"><aname="driver_">driver_</a> : <codeclass="type">!<ahref="class_webdriver_WebDriver.html">webdriver.WebDriver</a></code></span></div></summary></details></div></div><divclass="wrap-details private"><div><details><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2110">code »</a><spanclass="member"><aname="text_">text_</a> : <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<<ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></code></span></div></summary></details></div></div></section></main><navid="topnav"><div><divid="menubutton"><labelfor="sidenav-toggle">Menu</label></div><formid="searchbox"><div><inputtype="search" placeholder="Search" tabindex="1"></div></form></div></nav><navid="sidenav"><inputtype="checkbox" id="sidenav-types-ctrl" /><inputtype="checkbox" id="sidenav-files-ctrl" /><inputtype="checkbox" id="sidenav-modules-ctrl" /><aid="sidenav-overview"><div><h4>Overview</h4></div></a><divid="sidenav-types"><labelfor="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><divid="sidenav-modules"><labelfor="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><divid="sidenav-files"><labelfor="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><ahref="license.html"><div><h4>License</h4></div></a></nav><divid="push-footer"></div></div><footer><ahref="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><scriptsrc="types.js"></script><scriptsrc="dossier.js"></script>
12
+
when this command has completed.</dl></table></div></details></div></div></section><sectionid="instance-properties"><h2>Instance Properties</h2><divclass="wrap-details private"><div><details><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2169">code »</a><spanclass="member"><aname="driver_">driver_</a> : <codeclass="type">!<ahref="class_webdriver_WebDriver.html">webdriver.WebDriver</a></code></span></div></summary></details></div></div><divclass="wrap-details private"><div><details><summary><div><aclass="source" href="source/lib/webdriver/webdriver.js.src.html#l2172">code »</a><spanclass="member"><aname="text_">text_</a> : <codeclass="type">!<ahref="class_webdriver_promise_Promise.html">webdriver.promise.Promise</a>.<<ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></code></span></div></summary></details></div></div></section></main><navid="topnav"><div><divid="menubutton"><labelfor="sidenav-toggle">Menu</label></div><formid="searchbox"><div><inputtype="search" placeholder="Search" tabindex="1"></div></form></div></nav><navid="sidenav"><inputtype="checkbox" id="sidenav-types-ctrl" /><inputtype="checkbox" id="sidenav-files-ctrl" /><inputtype="checkbox" id="sidenav-modules-ctrl" /><aid="sidenav-overview"><div><h4>Overview</h4></div></a><divid="sidenav-types"><labelfor="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><divid="sidenav-modules"><labelfor="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><divid="sidenav-files"><labelfor="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><ahref="license.html"><div><h4>License</h4></div></a></nav><divid="push-footer"></div></div><footer><ahref="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><scriptsrc="types.js"></script><scriptsrc="dossier.js"></script>
0 commit comments