Closed muralinaidud closed 1 year ago
@muralinaidud, did you get it to work in the end?
Hi @marty30 no in firefox it never worked. and in chrome it worked but crashes in the middle of the test
Hi, i am having the same issue with cypress 10.4.0 and firefox 102. Chrome is working for me though
for me chrome still crashed and there is no error logs cypress 10.4.0
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
This issue is still remains same, on latest versions also cypress studio just crashes without any logs
Thanks @muralinaidud. I've attempted to reproduce this but haven't been successful, I can install cypress-iframe and call cy.iframe()
, then test parts of the iframe without a problem in Firefox.
So this doesn't seem to be an issue with all iframes in Firefox, there's likely something else going on that might be related to the specific details of your project.
Do you think you could try to create a reproduction that we could work with, you can use the template https://github.com/cypress-io/cypress-test-tiny
Without a reproduction it's hard for us to debug the issue.
For the other item you mentioned:
cypress studio just crashes without any logs
Could you tell me more about this? Are you attempting to record a test with Cypress Studio and it doesn't work?
HI @marktnoonan 2023-05-15-21-25-53.zip
please check the attached zip file for video recording for the issue I raised
This video is regarding the crash which I am talking about
Hi @marktnoonan
I still have permission denied issue when running iframe test in firefox
Thanks @muralinaidud. I didn't notice till now that this error is pointing to code that is part of the cypress-iframe
plugin, which is not maintained by us. It seems like the right place for this issue is the repo for that project: https://gitlab.com/kgroat/cypress-iframe/-/issues - it looks similar to this one https://gitlab.com/kgroat/cypress-iframe/-/issues/13
Looking at the error itself, it seems like the content of the iframe you are testing is on a different origin than the parent page, so that might be the cause of the problem with the other plugin, you would need to follow up there. Here is what I found out about that error: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Property_access_denied
I'm going to close this issue for now since it doesn't appear to be a problem with Cypress itself.
Hi @marktnoonan I was talking about 2 issues here
Hi @muralinaidud, ah I see, we should make a new GitHub issue to discuss the crash since it seems to be unrelated to the iFrame issue. I've made https://github.com/cypress-io/cypress/issues/26775 to discuss further. I'll tag you there.
We can leave this one closed in regards to the iframe issue. I agree it's not a solution but since the error is being thrown by a third party package which we don't control, you would need to engage the authors of that package to follow up.
Current behavior
when I run test which included Iframes to load, I am getting Permission denied to access property "toString" on cross-origin object in Firefox Browser.
And then I figure out to make it work in chrome by chromeWebSecurity as false and it used to run the test but cypress is crashing before the test complete,
As I cannot attach a video of my issue which is more than 10kb, please mail me murali08211@gmail.com if required more info on this
Desired behavior
The tests should run successfully
Test code to reproduce
in command.js
In fixtures
Cypress Version
9.0.0
Logs
Other
No response