rapid-yak-87393
03/09/2023, 7:51 PMwindow.document.bodylate-planet-4481
03/09/2023, 8:05 PMgray-kilobyte-89541
03/09/2023, 8:47 PMrapid-yak-87393
03/09/2023, 8:57 PMwindow.parent.document.getElementsByTagName('iFrame').item(0).contentDocument.body. Cypress grabs a reference to the window in the AUT and makes it available in cy.window and cy.document. Is there a reason why you can't use those in a test?late-planet-4481
03/09/2023, 9:57 PMcy.document() but for a moment there I had a more readable way to do it in my head by declaring variables and composing them. This is for a utility function so I was less concerned about sticking to Cypress norms 🙂
Thanks for the answer!