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

page.waitForSelector timeout #38

Open
Biogasbottle opened this issue Oct 18, 2024 · 4 comments
Open

page.waitForSelector timeout #38

Biogasbottle opened this issue Oct 18, 2024 · 4 comments

Comments

@Biogasbottle
Copy link

For privacy reasons, I cannot post the code. But I have found how to reproduce it. When the page completes the navigation ‘load’, the page has not been fully rendered by js. At this time, calling waitForSelector to wait for an element to be rendered will time out, even if the element has been rendered before the timeout.

@halvaenjoyer
Copy link

How come is this a patch issue?

@nwebson
Copy link
Contributor

nwebson commented Oct 18, 2024

Do you use it with the latest patch version using addBinding method?

@Biogasbottle
Copy link
Author

definitely..

PS D:************> npm i --save-dev puppeteer puppeteer-core
Debugger listening on ws://127.0.0.1:10061/da63e08e-be17-42d8-ace8-3794139d5d51
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.

added 2 packages, and audited 549 packages in 1s

150 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
Waiting for the debugger to disconnect...
PS D:**********> npx rebrowser-patches@latest patch --packageName puppeteer-core
Debugger listening on ws://127.0.0.1:10070/2f00998d-31f9-482b-ad07-c7e375ea9f96
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Need to install the following packages:
[email protected]
Ok to proceed? (y) y

Debugger listening on ws://127.0.0.1:10083/addf472d-35d4-4a55-9b2e-4d32c6086e4f
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Config:
command = patch, packageName = puppeteer-core
packagePath = D:***********/node_modules/puppeteer-core

Found package "puppeteer-core", version 23.6.0
Current patch status = 🟧 unpatched
Result: 🟢 success
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...

@nwebson
Copy link
Contributor

nwebson commented Oct 23, 2024

Please share some code showing this issue so I can debug it locally.

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

No branches or pull requests

3 participants