Skip to content

Commit d278b97

Browse files
shs96cAutomatedTester
authored andcommitted
Specify how to deserialize as an unhandled prompt strategy
1 parent f381cb7 commit d278b97

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

webdriver-spec.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8218,8 +8218,9 @@ <h2>User Prompts</h2>
82188218
<p>A <dfn>user prompt handler</dfn> is an <a>enumerated attribute</a>
82198219
defining what action the <a>remote end</a> must take
82208220
when a <a>user prompt</a> is encountered. This is defined by the
8221-
<a>unhandled prompt behavior</a> capability.
8222-
The following table lists the keywords and states for the attribute:
8221+
<a>unhandled prompt behavior</a> capability. The
8222+
following <dfn>known prompt handling approaches table</dfn> lists the
8223+
keywords and states for the attribute:
82238224

82248225
<table class=simple>
82258226
<tr>
@@ -8241,6 +8242,20 @@ <h2>User Prompts</h2>
82418242
</tr>
82428243
</table>
82438244

8245+
<p>When required to <dfn>deserialize as an unhandled prompt behavior</dfn> an
8246+
argument <var>value</var>:
8247+
8248+
<ol>
8249+
<li><p>If <var>value</var> is not a <a>string</a> return
8250+
an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
8251+
8252+
<li><p>If <var>value</var> is not present as a <code>keyword</code>
8253+
in the <a>known prompt handling approaches table</a> return an <a>error</a> with <a>error
8254+
code</a> <a>invalid argument</a>.
8255+
8256+
<li><p>Return <a>success</a> with data <var>value</var>.
8257+
</ol>
8258+
82448259
<p>In order to <dfn>handle any user prompts</dfn>
82458260
a <a>remote end</a> must take the following steps:
82468261

0 commit comments

Comments
 (0)