I have been trying to test a stripe checkout form using cypress.io
If anyone has managed to get this to work please let me know. I found a thread on the matter here http
in order to avoid using:
cy.wait(5000)
I found a better way to do it following the instructions cypress provides in this tutorial about how to work with iframes
cy.get('iframe[name="__privateStripeFrame5"]')
.its("0.contentDocument.body")
.should("not.be.empty")
.then((body) => {
cy.wrap(body)
.find("[name=cardnumber]")
.type("6011111111111117", { force: true });
});