Build failing for firefox when run for cypress using command line
See original GitHub issueHi,
I am trying to run testcases from run command to upload results to dashboard but build is failing:
SecurityError: Permission denied to access property "addEventListener" on cross-origin object on accessing the URL
but the test run well when run using open command for cypress version 6.0.1
.\node_modules\.bin\cypress run --browser firefox --headless --spec \"cypress/integration/OnlineWeb/* \"
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Command Line - Cypress Documentation
Run Cypress in the browser with the given name. If a filesystem path is supplied, Cypress will attempt to use the browser at...
Read more >Running cypress spec from command line in firefox browser ...
Cypress failed to make a connection to Firefox. This usually indicates there was a problem opening the Firefox browser.
Read more >How to run Cypress Tests on Firefox Browser | BrowserStack
A step-by-step tutorial to run Cypress tests on the Firefox browser with examples, code snippets, & CI integration for Cypress Firefox.
Read more >@cypress/github-action - npm
If you re-run the GitHub workflow, if you use the same custom build id during recording, Cypress Cloud will cancel the run with...
Read more >Run Cypress Test via Command Line ||Headed & HeadLess ...
In this video, I have explained how to Run Cypress Test via CLI - Command Line || Headed & HeadLess Browser || Run...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Asish,
There is a work around.
When you run your test case from either cypress or command line then lower your privacy & security settings to custom and uncheck all checkboxes for cookies, tracking content, cryptominors and finger prints. It should work. Also, if you run from Cypress window your test case then you can change that particular firefox launched instance download folder path as well. It will remember for any subsequent run.
On Mon, Jun 7, 2021, 10:09 Shirsh @.***> wrote:
@alokverma75 Thanks Alok. It worked. But funny thing is that , after that when I changed it back to Standard settings also its working fine. Thanks anyway.