-
Notifications
You must be signed in to change notification settings - Fork 123
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
Protocol error (DOM.scrollIntoViewIfNeeded): Cannot find context with specified id #57
Comments
|
Thanks for your help! Is there any workaround? |
I'm also waiting for this bug to be fixed. |
Any updates? |
No |
This would be nice, especially for captchas, which often reside in an <iframe>. |
Found a workaround 😀. If you don't need scrolling capabilities, simply comment on the line in Before: return [4, getCDPClient(page).send('DOM.scrollIntoViewIfNeeded', {
objectId: objectId
})]; After: // return [4, getCDPClient(page).send('DOM.scrollIntoViewIfNeeded', {
// objectId: objectId
// })]; I suggest you use CTRL + F to find this line. Note that this is really just a workaround, and usually, modifying your node_modules folder isn't a great idea. |
Hi,
Thanks for making this awesome module. I was using it to click an object inside of an iframe. Here is the code:
However there's an error:
Actually the click event is triggered, but it seems that there's something wrong with the scroll. Is there any way to fix it?
The text was updated successfully, but these errors were encountered: