question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failing for firefox when run for cypress using command line

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
alokverma75commented, Jun 8, 2021

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:

I am using 7.4.0 for Cypress. Is there any workaround or settings in Firefox so that it can be bypassed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cypress-io/cypress/issues/9532#issuecomment-855569874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7STLK6QKIKCUKS5YQWOL3TRREOPANCNFSM4UNQNOBQ .

0reactions
shirshGitcommented, Jun 9, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found