@@ -286,13 +286,6 @@ class IWebDriver {
286
286
/**
287
287
* Creates a new action sequence using this driver. The sequence will not be
288
288
* submitted for execution until {@link ActionSequence#perform} is called.
289
- * Example:
290
- *
291
- * driver.actions()
292
- * .mouseDown(element1)
293
- * .mouseMove({x: 15, y: 15})
294
- * .mouseUp()
295
- * .perform();
296
289
*
297
290
* @return {!ActionSequence } A new action sequence for this instance.
298
291
*/
@@ -2500,8 +2493,8 @@ class AlertPromise extends Alert {
2500
2493
* will not be executed until {@link #perform()} is called.
2501
2494
*
2502
2495
* Action sequences are divided into a series of "ticks". At each tick, the
2503
- * WebDriver remote end will perform a single action for each device in the
2504
- * action sequence. At tick 0, the driver will perform the first action
2496
+ * WebDriver remote end will perform a single action for each device included
2497
+ * in the action sequence. At tick 0, the driver will perform the first action
2505
2498
* defined for each device, at tick 1 the second action for each device, and
2506
2499
* so on until all actions have been executed. If an individual device does
2507
2500
* not have an action defined at a particular tick, it will automatically
@@ -2521,13 +2514,13 @@ class AlertPromise extends Alert {
2521
2514
* 7. releasing the SHIFT key
2522
2515
*
2523
2516
* Note there are no actions (or change in state) for the keyboard for
2524
- * ticks 2 - 6.
2517
+ * ticks 2 - 6, so it should pause for these ticks .
2525
2518
*
2526
- * This input sequence can be producing using the ActionSequence API with
2519
+ * This input sequence can be produced using the ActionSequence API with
2527
2520
* the code below. Actions must be defined individually for each device and
2528
2521
* explicitly kept in sync by the user. The list of actions for the mouse is
2529
2522
* far longer than the keyboard. Rather than keeping track of the number of
2530
- * steps for the keyboard to pause, notice there is a single call to
2523
+ * steps for the keyboard to pause, there is a single call to
2531
2524
* {@link #synchronize()}. This instructs the ActionSequence to ensure the
2532
2525
* input sequence for all devices are the same length - inserting explicit
2533
2526
* {@linkplain input.Sequence#pause pauses} as necessary.
@@ -2568,7 +2561,7 @@ class ActionSequence {
2568
2561
new input . PointerSequence (
2569
2562
new input . Pointer ( 'default touch' , input . Pointer . Type . TOUCH ) ) ;
2570
2563
}
2571
-
2564
+
2572
2565
/**
2573
2566
* Ensures the action sequence for every device referenced in this action
2574
2567
* sequence is the same length. For devices whose sequence is too short,
@@ -2581,7 +2574,7 @@ class ActionSequence {
2581
2574
let max = this . keyboard_ . length ( ) ;
2582
2575
max = Math . max ( max , this . mouse_ . length ( ) ) ;
2583
2576
max = Math . max ( max , this . touch_ . length ( ) ) ;
2584
-
2577
+
2585
2578
function extend ( /** !input.Sequence */ sequence ) {
2586
2579
while ( sequence . length ( ) < max ) {
2587
2580
sequence . pause ( ) ;
@@ -2628,7 +2621,7 @@ class ActionSequence {
2628
2621
* Performs the configured action sequence.
2629
2622
*
2630
2623
* @return {!Promise<void> } a promise that will resolve when all actions have
2631
- * been completed.
2624
+ * been completed.
2632
2625
*/
2633
2626
perform ( ) {
2634
2627
let actions = [
0 commit comments