I’ve successfully uploaded an image but can not access the “done” button in the iframe.
There are multiple iframes on the page so I can not use cy.iframe()
. Even calling the “nth” iframe will not let me access the elements in that particular iframe.
The iframe does not have a body field
So I’ve created a custom command.
Website
MyCode
Below is the cypress error I get, I’ve split it because there are multiple API calls in between and I could not get a full image
Error1
Error2
I understand the error is because the body does not exist and therefore there is nothing to “wrap”. Is there another way to approach this outside of writing a new jQuery?
user25065585 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.