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
waitForFileChooser() never resolves #5537
Comments
I think you have to call both functions at the same time, like the documentation says https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#pagewaitforfilechooseroptions
Also, this function seems to be more stable in puppeteer v2.0.0 |
I've tried that way and it doesn't work either. Same results. Actually, I believe that the documentation is mistaken (that's why my implementation is different) because |
I would recommend you trying with Chromium 79.0.3942.0 - Puppeteer v2.0.0 for now because I have seen some issues related to the fileChooser in the newer versions of pptr. This is because of the |
I've just tried it and I can confirm that things work well with v2.0.0. Thanks for the tip. Fingers crossed to have this issue fixed at some point. |
This is fixed as of 532ae57 |
Steps to reproduce
Tell us about your environment:
What is the expected result?
The file chooser should accept the provided file.
What happens instead?
waitForFileChooser()
never resolves and the code gets blocked.The text was updated successfully, but these errors were encountered: