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
Copy file name to clipboardExpand all lines: README.md
+13-6
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ Toggles random mouse movements on or off.
115
115
Simulates a mouse click at the specified selector or element.
116
116
117
117
-**selector (optional):** CSS selector or ElementHandle to identify the target element.
118
-
-**options (optional):** Additional options for clicking. **Extends the `options` of the `move`and `scrollIntoView` functions (below)**
118
+
-**options (optional):** Additional options for clicking. **Extends the `options` of the `move`, `scrollIntoView`, and `getElement` functions (below)**
119
119
-`hesitate (number):` Delay before initiating the click action in milliseconds. Default is `0`.
120
120
-`waitForClick (number):` Delay between mousedown and mouseup in milliseconds. Default is `0`.
121
121
-`moveDelay (number):` Delay after moving the mouse in milliseconds. Default is `2000`. If `randomizeMoveDelay=true`, delay is randomized from 0 to `moveDelay`.
@@ -125,10 +125,9 @@ Simulates a mouse click at the specified selector or element.
125
125
Moves the mouse to the specified selector or element.
126
126
127
127
-**selector:** CSS selector or ElementHandle to identify the target element.
128
-
-**options (optional):** Additional options for moving. **Extends the `options` of the `scrollIntoView`function (below)**
128
+
-**options (optional):** Additional options for moving. **Extends the `options` of the `scrollIntoView`and `getElement` functions (below)**
129
129
-`paddingPercentage (number):` Percentage of padding to be added inside the element when determining the target point. Default is `0` (may move to anywhere within the element). `100` will always move to center of element.
130
130
-`destination (Vector):` Destination to move the cursor to, relative to the top-left corner of the element. If specified, `paddingPercentage` is not used. If not specified (default), destination is random point within the `paddingPercentage`.
131
-
-`waitForSelector (number):` Time to wait for the selector to appear in milliseconds. Default is to not wait for selector.
132
131
-`moveDelay (number):` Delay after moving the mouse in milliseconds. Default is `0`. If `randomizeMoveDelay=true`, delay is randomized from 0 to `moveDelay`.
133
132
-`randomizeMoveDelay (boolean):` Randomize delay between actions from `0` to `moveDelay`. Default is `true`.
134
133
-`maxTries (number):` Maximum number of attempts to mouse-over the element. Default is `10`.
@@ -145,16 +144,24 @@ Moves the mouse to the specified destination point.
145
144
-`moveDelay (number):` Delay after moving the mouse in milliseconds. Default is `0`. If `randomizeMoveDelay=true`, delay is randomized from 0 to `moveDelay`.
146
145
-`randomizeMoveDelay (boolean):` Randomize delay between actions from `0` to `moveDelay`. Default is `true`.
0 commit comments