-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Make it possible to perform actions while pressing a particular key or pointer button #198
Comments
Yep we can, but I prefer |
I was wondering if this can also be made to work with clipboard, like copying and pasting ( meta+c,meta+v) ? |
I think cypress itself is doing this on start for his own automation protocol, but making a test that makes copy and paste will be super helpful |
Cypress doesn't have a full documented way of doing it for now. https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/testing-dom__clipboard/cypress/integration/permissions-spec.js#L46 Actually, I started to implement it for our rich text editor library at EEA, but I need a way to somehow trigger a "copy" event ( without using |
@nileshgulia1 if you find this package not being able to do what you need – please submit a PR with a fix and a couple of tests that verify desired behavior |
@nileshgulia1 I'm not sure if that's currently possible - I can't find anything related to copy-pasting in the Chrome Debugger Protocol. And it seems that Playwright doesn't support this yet either: microsoft/playwright#8114 (they are using CDP under the hood as well) |
To test some interactions we might have to do multiple things at once - like for example press space and move the pointer around while holding the left button of the mouse down to perform a "pan" in a canvas-based app (like in Figma, Excalidraw and more)
Should we introduce
cy.realPressDown
andcy.realPressUp
to allow this? With this in place it should be possible to perform this sequence in a test - although it would be nice to also get some command for moving the pointer and this is related to #17The text was updated successfully, but these errors were encountered: