Open dzcpy opened 2 years ago
ghost-cursor
expects the element to reside in the main frame, not in a subframe. This can probably be fixed though.
ghost-cursor
expects the element to reside in the main frame, not in a subframe. This can probably be fixed though.
Thanks for your help! Is there any workaround?
I'm also waiting for this bug to be fixed.
Any updates?
Any updates?
No
This would be nice, especially for captchas, which often reside in an
Found a workaround 😀. If you don't need scrolling capabilities, simply comment on the line in node_modules\ghost-cursor\lib\spoof.js
which is causing the issue.
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?