-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SecurityError when accessing an iframe of same origin #4533
Comments
I'm not able to reproduce this behavior with the provided code. The provided repo - did you not provide the branch this code is on? The Ran on Mac, Cypress 3.1.5. Please provide all information pertaining to config, proxy, setup, plugins, etc. I'm not exactly sure what you are testing, but I see you are getting a 'captcha-recaptcha' element. We do not support testing captcha as it is designed to specifically avoid being automated. |
@jennifer-shehane sorry forgot to push the test file to the repo. (now pushed). Regarding the config, etc not sure what I can add since I have no proxy, no plugin and using the default cypress config. Note that this isn't directly related to captcha since I'm just accessing the iframe's contentDocument (this also happens to me in other sites iframes..) |
btw if I open the console in the "Your App" frame and access frame's The wired thing is I'm getting this error when getting the frame with |
Ok, I am able to reproduce this in Electron 61 (Chrome 61) - that was the key information missing. This is due to some differences between Chrome 61 and the current version. You can turn off this error by setting |
Thanks ! |
Electron has been upgraded to 7.1.10 as of Cypress 3.8.3 and should be resolved without the workaround. |
Current behavior:
When getting an iframe of same origin and accessing it's
contentDocuemnt
this error is thrown:(perhaps related to #3685 ?)
Desired behavior:
Not get the error if the iframe is of the same origin
Steps to reproduce:
https://github.com/danielschwartz85/cypress-issue-example
Versions
Cypress 3.1.5
Ubuntu 18.04.2 LTS
Thanks.
The text was updated successfully, but these errors were encountered: