How to convert screenshot Base64 directly in Cypress?

Viewed 257

Using following code we can take a screenshot in Cypress

cy.screenshot('abc.png');

But my requirement here is to get Base64 string of the screenshot. Is there any way to directly convert a screenshot to Base64 string in cypress? (I dont even need to store the screenshot on file system)

0 Answers
Related