-
Notifications
You must be signed in to change notification settings - Fork 45
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
DispatchKeyEvent example #52
Comments
I believe you might also need to dispatch an event of type https://github.com/GoogleChrome/puppeteer/blob/master/lib/Input.js Also, take a look at the resources listen in the readme, both the devtools repo and mailing list are excellent resources. I'd be happy to accept PRs with examples! Unfortunately I don't have time to create an example for every possible use case 😄. |
@varashellov @mafredri I have used this in my code, I will write up a short Go example & post. I'm sure others will find it useful as well. |
Thanks @djmally, didn't realize it was enough to just send keyDown, good to know. Perhaps in some cases it mandates to send more of them. Anywho, sending key events is something that can be improved in this library, so I'll keep this open for now as a reminder. |
cdp.Input: DispatchKeyEvent: rpc error: Invalid 'text' parameter (code = -32602)
|
@clanstyles what are you setting as text value? You can only use single characters like say |
What about system keys such as Escape? I tried |
Hello!
Please provide an example of keystrokes.
My code does not work
The text was updated successfully, but these errors were encountered: