cypress-clipboard
v1.0.3
Published
Adds ability to copy and paste from clipboard to Cypress
Downloads
6,578
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');