Skip to content
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

Implement cy.realUpload #13

Open
dmtrKovalenko opened this issue Dec 18, 2020 · 0 comments
Open

Implement cy.realUpload #13

dmtrKovalenko opened this issue Dec 18, 2020 · 0 comments
Labels

Comments

@dmtrKovalenko
Copy link
Owner

dmtrKovalenko commented Dec 18, 2020

Task cy.realUploadwill upload file from the file system. It should work similar to https://github.com/abramenal/cypress-file-upload/ but upload the file using CDP.

This command will require a plugin to be registered.

It is possible using a puppeteer, so it should (https://dev.to/sonyarianto/practical-puppeteer-how-to-upload-a-file-programatically-4nm4) and we should be able to attach input file using DOM.setFileInputFiles CDP command instead of javascript-based approach

cy.get("input").realUpload("filename.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant