Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse handling #45

Closed
ivanvanderbyl opened this issue Jun 7, 2019 · 1 comment
Closed

Mouse handling #45

ivanvanderbyl opened this issue Jun 7, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@ivanvanderbyl
Copy link
Contributor

Add support for interacting with Puppeteer Mouse events. This is required for handling drag & drop, sliders, and hover interactions.

Describe the solution you'd like

Mouse events, especially hover events, are quite verbose, I would suggest we support something which takes ...events as an input of 1 or more events.

Example:

await browser.mouse.down(x,y)
await browser.mouse.up(x,y)

// only send movement
await browser.mouse.move(x1, y2, x2, y2, ..., xn, yn)

// initiate a drag with `mousedown`, `mousemove1`, `mousemove2`, `mouseup`
await browser.mouse.drag(x1, y2, x2, y2, ..., xn, yn)
@ivanvanderbyl ivanvanderbyl added this to the v1.1 milestone Jun 7, 2019
@ivanvanderbyl ivanvanderbyl added enhancement New feature or request good first issue Good for newcomers labels Jun 7, 2019
@ivanvanderbyl ivanvanderbyl mentioned this issue Jun 18, 2019
2 tasks
@ivanvanderbyl
Copy link
Contributor Author

Closed by #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant