Skip to content

Commit d22fc51

Browse files
committed
[js] cleanup action sequence docs
1 parent 17fc7d4 commit d22fc51

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

javascript/node/selenium-webdriver/lib/webdriver.js

+8-15
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,6 @@ class IWebDriver {
286286
/**
287287
* Creates a new action sequence using this driver. The sequence will not be
288288
* 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();
296289
*
297290
* @return {!ActionSequence} A new action sequence for this instance.
298291
*/
@@ -2500,8 +2493,8 @@ class AlertPromise extends Alert {
25002493
* will not be executed until {@link #perform()} is called.
25012494
*
25022495
* 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
25052498
* defined for each device, at tick 1 the second action for each device, and
25062499
* so on until all actions have been executed. If an individual device does
25072500
* not have an action defined at a particular tick, it will automatically
@@ -2521,13 +2514,13 @@ class AlertPromise extends Alert {
25212514
* 7. releasing the SHIFT key
25222515
*
25232516
* 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.
25252518
*
2526-
* This input sequence can be producing using the ActionSequence API with
2519+
* This input sequence can be produced using the ActionSequence API with
25272520
* the code below. Actions must be defined individually for each device and
25282521
* explicitly kept in sync by the user. The list of actions for the mouse is
25292522
* 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
25312524
* {@link #synchronize()}. This instructs the ActionSequence to ensure the
25322525
* input sequence for all devices are the same length - inserting explicit
25332526
* {@linkplain input.Sequence#pause pauses} as necessary.
@@ -2568,7 +2561,7 @@ class ActionSequence {
25682561
new input.PointerSequence(
25692562
new input.Pointer('default touch', input.Pointer.Type.TOUCH));
25702563
}
2571-
2564+
25722565
/**
25732566
* Ensures the action sequence for every device referenced in this action
25742567
* sequence is the same length. For devices whose sequence is too short,
@@ -2581,7 +2574,7 @@ class ActionSequence {
25812574
let max = this.keyboard_.length();
25822575
max = Math.max(max, this.mouse_.length());
25832576
max = Math.max(max, this.touch_.length());
2584-
2577+
25852578
function extend(/** !input.Sequence */ sequence) {
25862579
while (sequence.length() < max) {
25872580
sequence.pause();
@@ -2628,7 +2621,7 @@ class ActionSequence {
26282621
* Performs the configured action sequence.
26292622
*
26302623
* @return {!Promise<void>} a promise that will resolve when all actions have
2631-
* been completed.
2624+
* been completed.
26322625
*/
26332626
perform() {
26342627
let actions = [

0 commit comments

Comments
 (0)