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
<td>Indicates whether the endpoint node supports all Virtual Wallet commands.</td>
2193
+
</tr>
2194
+
</tbody>
2195
+
</table>
2196
+
<p>
2197
+
When <adata-cite="webdriver#dfn-validate-capabilities">validating capabilities</a>, the extension-specific substeps to validate <code>digital-credentials:virtualWallet</code> with <code>value</code> are the following:
2198
+
</p>
2199
+
<olclass="algorithm">
2200
+
<li>If <code>value</code> is not a [=boolean=], return a [=error|WebDriver error=] with a [=error code|WebDriver error code=] [=invalid argument=]</a>.</li>
2201
+
<li>Otherwise, let <code>deserialized</code> be set to <code>value</code>.</li>
2202
+
</ol>
2203
+
<p>
2204
+
When <adata-cite="webdriver#dfn-matching-capabilities">matching capabilities</a>, the extension-specific steps to match <code>digital-credentials:virtualWallet</code> with <code>value</code> are the following:
2205
+
</p>
2206
+
<olclass="algorithm">
2207
+
<li>If <code>value</code> is <code>true</code> and the <adata-cite="webdriver#dfn-endpoint-node">endpoint node</a> does not support any of the Virtual Wallet commands, the match is unsuccessful.</li>
2208
+
<li>Otherwise, the match is successful.</li>
2209
+
</ol>
2210
+
</section>
2211
+
<sectionid="virtual-wallet-commands">
2212
+
<h3>Virtual Wallet Commands</h3>
2213
+
<p>
2214
+
The following commands allow controlling the behavior of a virtual wallet for testing purposes. These commands affect the behavior of the next <code>navigator.credentials.get({digital: ...})</code> or <code>navigator.credentials.create({digital: ...})</code> call.
2215
+
</p>
2216
+
<sectionid="set-wallet-response">
2217
+
<h4><dfn>Set Wallet Response</dfn></h4>
2218
+
<p>
2219
+
The [=Set Wallet Response=] [[WebDriver]] [=extension command=] configures the virtual wallet to respond with a specific data payload, simulating a user successfully completing the flow.
<p>The parameters object is a JSON <adata-cite="webdriver#dfn-object">Object</a> with the following key:</p>
2236
+
<tableclass="data">
2237
+
<thead>
2238
+
<tr>
2239
+
<th>Key</th>
2240
+
<th>Value Type</th>
2241
+
<th>Description</th>
2242
+
</tr>
2243
+
</thead>
2244
+
<tbody>
2245
+
<tr>
2246
+
<td><code>data</code></td>
2247
+
<td>string</td>
2248
+
<td>The data to be returned by the wallet.</td>
2249
+
</tr>
2250
+
</tbody>
2251
+
</table>
2252
+
<p>The [=remote end steps=] are:</p>
2253
+
<olclass="algorithm">
2254
+
<li>If <code>parameters</code> is not a JSON <adata-cite="webdriver#dfn-object">Object</a>, or if it does not contain a <code>data</code> property of type string, return a [=error|WebDriver error=] with [=error code|WebDriver error code=] [=invalid argument=].</li>
2255
+
<li>Set the session's "next wallet behavior" to <code>{ "mode": "respond", "data": parameters.data }</code>.</li>
2256
+
<li>Return [=success=].</li>
2257
+
</ol>
2258
+
</section>
2259
+
<sectionid="set-wallet-to-wait">
2260
+
<h4><dfn>Set Wallet to Wait</dfn></h4>
2261
+
<p>
2262
+
The [=Set Wallet to Wait=] [[WebDriver]] [=extension command=] configures the virtual wallet to simulate a user waiting indefinitely in the wallet UI.
0 commit comments