Trying to enter CC details under iframe , but the document is not visible. Do you guys have a way to workaround this issue?
See attached DOM. and here is the code i'm using to get the cardnumber placeholder.
cy.get(‘iframeMonerisCheckout-Frame’)
.should("be.visible")
.its("0.contentDocument.body")
.then(cy.wrap)
.find("[name='cardnumber']")
.should("be.visible")
.type(cardNumber);
So 0.contentDocument.body is not available. see attached.
https://cdn.discordapp.com/attachments/1098966382131040296/1098966383359951019/1AF124C5-3EE1-439F-8D25-615B3EE307C5.jpg▾
https://cdn.discordapp.com/attachments/1098966382131040296/1098966384484044810/BC6E1D0D-83DB-4C07-9C36-E8BEDB179D85.jpg▾