Skip to content

Commit

Permalink
Adds 'Consume User Activation of Window' via WebDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored and Marcos Caceres committed Feb 8, 2023
1 parent 69998ed commit c27903e
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -76391,6 +76391,38 @@ partial interface <span id="NavigatorUserActivation-partial">Navigator</span> {

</div>

<h4 id="user-activation-user-agent-automation">User agent automation</h4>

<p>For the purposes of user-agent automation and application testing, this specification defines
the following <span>extension command</span> for the <cite>Web Driver</cite> specification. It is
optional for a user agent to support the following <span>extension command</span>. <ref
spec=WEBDRIVER></p>

<table class="data">
<thead>
<tr>
<th>HTTP Method
<th>URI Template
<tbody>
<tr>
<td>`<code data-x="">POST</code>`
<td><code data-x="">/session/{<var>session id</var>}/window/consume-user-activation</code>
</table>

<p>The <span>remote end steps</span> are:

<ol>
<li><p>Let <var>window</var> be <span data-x="webdriver-current-browsing-context">current
browsing context</span>'s <span>active window</span>.</p></li>

<li><p>Let <var>consume</var> be true if <var>window</var> has <span>transient activation</span>
or false otherwise.</p></li>

<li><p>If <var>consume</var> is true, <span>consume user activation</span> of
<var>window</var>.</p></li>

<li><p>Return <span data-x="success-value">success</span> with data <var>consume</var>.</p></li>
</ol>

<h3 id="activation">Activation behavior of elements</h3>

Expand Down Expand Up @@ -132900,7 +132932,7 @@ INSERT INTERFACES HERE
<dd><cite><a href="https://w3c.github.io/webcrypto/Overview.html">Web Cryptography API</a></cite>, D. Huigens. W3C.</dd>

<dt id="refsWEBDRIVER">[WEBDRIVER]</dt>
<dd><cite><a href="https://w3c.github.io/webdriver/">WebDriver</a></cite>. W3C</dd>
<dd><cite><a href="https://w3c.github.io/webdriver/">WebDriver</a></cite>, S. Stewart, D. Burns. W3C.</dd>

<dt id="refsWEBDRIVERBIDI">[WEBDRIVERBIDI]</dt>
<dd><cite><a href="https://w3c.github.io/webdriver-bidi/">WebDriver BiDi</a></cite>. W3C</dd>
Expand Down

0 comments on commit c27903e

Please sign in to comment.