cypress-cdp-client
v1.0.1
Published
Adds ability to copy and paste from clipboard to Cypress
Downloads
64
Maintainers
Readme
cypress-clipboard
Adds ability to:
- read clipboard's content
- write to clipboard
npm install cypress-clipboard;
yarn add cypress-clipboard
import 'cypress-clipboard';
cy.get('SOME SELECTOR')
.invoke('text')
.copyToClipboard();
import 'cypress-clipboard';
cy.wrap('SOME STRING VALUE')
.copyToClipboard();
import 'cypress-clipboard';
cy.copyFromClipboard().then(clipboardData => {})
import 'cypress-clipboard';
cy.copyFromClipboard().should('eq', 'EXPECTED VALUE');