new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Playwright · API reference · all subjects

mouse/methods

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Mouse.move method

The Mouse.move method is an async method that dispatches a mousemove event. It takes required parameters x (float) and y (float) which are X and Y coordinates relative to the main frame's viewport in CSS pixels. An optional parameter is steps (default depends on input-mousemove-steps). Added in v1.8.

Mouse.up method

The Mouse.up method is an async method that dispatches a mouseup event. Optional parameters are button (default depends on input-button) and clickCount (default depends on input-click-count). Added in v1.8.

Mouse.click method

The Mouse.click method is an async method that serves as a shortcut for Mouse.move, Mouse.down, and Mouse.up. It takes required parameters x (float) and y (float) which are X and Y coordinates relative to the main frame's viewport in CSS pixels. Optional parameters are button (default depends on input-button), clickCount (default depends on input-click-count), and delay (default depends on input-down-up-delay). Added in v1.8.

Mouse.dblclick method

The Mouse.dblclick method is an async method (aliased as DblClickAsync in C#) that serves as a shortcut for Mouse.move, Mouse.down, Mouse.up, Mouse.down, and Mouse.up. It takes required parameters x (float) and y (float) which are X and Y coordinates relative to the main frame's viewport in CSS pixels. Optional parameters are button (default depends on input-button) and delay (default depends on input-down-up-delay). Added in v1.8.

Mouse.down method

The Mouse.down method is an async method that dispatches a mousedown event. Optional parameters are button (default depends on input-button) and clickCount (default depends on input-click-count). Added in v1.8.

Mouse.wheel method

The Mouse.wheel method is an async method that dispatches a wheel event, typically used to manually scroll the page. It takes required parameters deltaX (float) for pixels to scroll horizontally and deltaY (float) for pixels to scroll vertically. The method does not wait for scrolling to finish before returning. Added in v1.15.

Give your agent this brain