@@ -9120,18 +9120,16 @@
Dispatching actions
9120
9120
grouped by < a > ticka > , and then causes each action to be run at the
9121
9121
appropriate point in the sequence.
9122
9122
9123
- < p > To < dfn > dispatch actionsdfn > given < var > input
9124
- statevar > , < var > actions by tickvar > , < var > browsing
9125
- contextvar > , and < var > actions optionsvar > :
9123
+ < p > To < dfn > wait for an action queue tokendfn > given < var > input statevar > :
9126
9124
9127
9125
< ol class =algorithm >
9128
9126
< li > < p > Let < var > tokenvar > be a new unique identifier.
9129
9127
9130
- < li > < p > Enqueue < var > tokenvar > in < var > input statevar > 's < a > actions
9131
- queuea > .
9128
+ < li > < p > Enqueue < var > tokenvar > in < var > input statevar > 's
9129
+ < a > actions queuea > .
9132
9130
9133
9131
< li > < p > Wait for < var > tokenvar > to be the first item
9134
- in < var > input statevar > 's < a > actions queuea > .
9132
+ in < var > input statevar > 's < a > actions queuea > .
9135
9133
9136
9134
< aside class =note >
9137
9135
< p > This ensures that only one set of actions can be run at a time,
@@ -9141,13 +9139,21 @@
Dispatching actions
9141
9139
session types can allow running multiple commands in parallel, in
9142
9140
which case this is necessary to ensure sequential access.
9143
9141
aside >
9142
+ ol >
9144
9143
9145
- < li > < p > Let < var > actions resultvar > be the result of < a > dispatch
9146
- actions innera > with < var > input statevar > , < var > actions by
9147
- tickvar > , < var > browsing contextvar > , and < var > actions optionsvar > .
9144
+ < p > To < dfn > dispatch actionsdfn > given < var > input
9145
+ statevar > , < var > actions by tickvar > , < var > browsing
9146
+ contextvar > , and < var > actions optionsvar > :
9147
+
9148
+ < ol class =algorithm >
9149
+ < li > < p > < a > Wait for an action queue tokena > with < var > input statevar > .
9150
+
9151
+ < li > < p > Let < var > actions resultvar > be the result of
9152
+ < a > dispatch actions innera > with < var > input statevar > , < var > actions by
9153
+ tickvar > , < var > browsing contextvar > , and < var > actions optionsvar > .
9148
9154
9149
9155
< li > < p > Dequeue < var > input statevar > 's < a > actions queuea > .
9150
- < p > Assert: this returns < var > tokenvar >
9156
+ < p > Assert: this returns < var > tokenvar >
9151
9157
9152
9158
< li > < p > Return < var > actions resultvar > .
9153
9159
ol >
@@ -10325,26 +10331,26 @@
Release Actions
10325
10331
is < a > no longer opena > , return < a > errora > with < a > error
10326
10332
codea > < a > no such windowa > .
10327
10333
10328
- < li > < p > Let < var > input statevar > be the result of < a > get the
10329
- input statea > with < a > sessiona > and < a > current
10330
- top-level browsing contexta > .
10334
+ < li > < p > Let < var > input statevar > be the result of < a > get the input statea >
10335
+ with < a > sessiona > and < a > current top-level browsing contexta > .
10331
10336
10332
10337
< li > < p > Let < var > actions optionsvar > be a new < a > actions optionsa >
10333
10338
with the < a > is element origina > steps set to < a > represents a web
10334
10339
elementa > , and the < a > get element origina > steps set
10335
10340
to < a > get a WebElement origina > .
10336
10341
10342
+ < li > < p > < a > Wait for an action queue tokena > with < var > input statevar > .
10343
+
10337
10344
< li > < p > Let < var > undo actionsvar > be < var > input
10338
- statevar > 's < a > input cancel lista > in reverse order.
10345
+ statevar > 's < a > input cancel lista > in reverse order.
10346
+
10347
+ < li > < p > < a > Trya > to < a > dispatch actionsa > with < var > input statevar > ,
10348
+ < var > undo actionsvar > , < a > current browsing contexta > ,
10349
+ and < var > actions optionsvar > .
10339
10350
10340
- < li > < p > < a > Trya > to < a > dispatch tick actionsa > with arguments
10341
- < var > undo
10342
- actionsvar > , < code > 0code > ,< var > sessionvar > 's < a > current
10343
- browsing contexta > , and < a > actions optionsa > .
10344
10351
10345
10352
< li > < p > < a > Reset the input statea > with < var > sessionvar >
10346
- and < var > sessionvar > 's < a > current top-level browsing
10347
- contexta > .
10353
+ and < var > sessionvar > 's < a > current top-level browsing contexta > .
10348
10354
10349
10355
< li > < p > Return < a > successa > with data < a > < code > nullcode > a > .
10350
10356
ol >
0 commit comments