Paste clipboard content into a text input via keyboard shortcut #790
Unanswered
scottopherson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think you need to use this: Line 122 in 938f47b |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone have a working example of pasting clipboard content into an input element using keyboard shortcut?
I've tried the following within a macos environment:
and I've also tried various other combinations of
Press
andType
but have not had any luck yet on getting clipboard content to paste into an input element.In Playwright, I currently achieve this with:
My current use-case is to simulate a user who: navigates to a website, clicks a "copy to clipboard" button, and then pastes the content into another website via keyboard shortcut.
Beta Was this translation helpful? Give feedback.
All reactions