Created
April 21, 2021 09:16
-
-
Save tochman/fb2c98b7b1c4d387e7edc99ad84fbef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cy.get("iframe[id=the-id-or-class-or-name]").then(iframe => { | |
const body = iframe.contents().find('body') | |
cy.wrap(body) | |
.find('[data-cy=whatever]') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment