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

[@types/puppeteer] page.mouse.wheel(...) not supported #48710

Closed
ce-bo opened this issue Oct 12, 2020 · 2 comments · Fixed by #49272
Closed

[@types/puppeteer] page.mouse.wheel(...) not supported #48710

ce-bo opened this issue Oct 12, 2020 · 2 comments · Fixed by #49272

Comments

@ce-bo
Copy link

ce-bo commented Oct 12, 2020

The new page.mouse.wheel() API is not supported in package @types/puppeteer (v^3.0.2).
Would you be so kind and release a new type definition to support the new API?

@marvinhagemeister
@cdeutsch
@ksm2
@SimonSchick
@serbanghita
@JasonKaz
@davecardwell
@angrykoala
@peterblazejewicz

Thank you!

@emmanuelgautier
Copy link
Contributor

Puppeteer has their own typing definition since this version. You should have access to the mouse.wheel method.

Furthermore, this method seems not exists following the documentation: https://github.com/puppeteer/puppeteer/blob/v3.0.2/docs/api.md

@ce-bo
Copy link
Author

ce-bo commented Oct 13, 2020

Thanks @emmanuelgautier

Furthermore, this method seems not exists following the documentation:
https://github.com/puppeteer/puppeteer/blob/v3.0.2/docs/api.md

The wheel method exists in the latest puppeteer version:
https://github.com/puppeteer/puppeteer/blob/v5.3.1/docs/api.md

It is still recommended to install the @types/puppeteer package to use the latest puppeteer version 5.3.1 with typescript (but the @types/puppeteer package does not support the latest puppeteer API)
https://github.com/puppeteer/puppeteer/tree/v5.3.1#user-content-usage-with-typescript

The implementation of puppeteers own typescript definitions is not finished yet:
puppeteer/puppeteer#6124

I just use the wheel() method despite the TypeError to fix my issue. For that I ignored the TypeError with @ts-ignore.

Let's close this issue and thanks again 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants