Does this work in an iframe or nested iframes? #371
-
I am currently trying to upload a custom plug-in in Excel worksheet online. I'm using Sharepoint. I can get to the dialog where I would normally browse for my file but then trying to do the actual attachFile method doesn't do anything. After it gets done with that line, nothing happens to the file input window. This is all done within nested iframes. I can interact in both iframes, so it's not a lack of functionality. I was wondering if attachFile works in iframes. Below is a bit of the code I used to get to this point. ` cy.frameLoaded("#WebApplicationFrame") |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My issue was I had the wrong element in the attachFile line. I inspected the element which had the file name but that wasn't the element with the type=file attribute. Once I used the correct element this worked. |
Beta Was this translation helpful? Give feedback.
My issue was I had the wrong element in the attachFile line. I inspected the element which had the file name but that wasn't the element with the type=file attribute. Once I used the correct element this worked.