Replies: 1 comment
-
You may like to use a Cypress Docker image that already has |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, Cypress users and developers! I test Cypress for 3 days already. It works fine with Chromium on Linux Devuan, but today I faced with complex issue with geckodriver and Firefox.
Cypress runs tests in firefox fine if I set environment variable like this:
GECKODRIVER_PATH=/home/$USER/.cargo/bin/geckodriver npx cypress run --browser firefox --headed
But I think that this is not elegant, because I want to run test in firefox the same elegant way as in Chromium:
npx cypress run --browser chromium --headed
but here my first issue:
1. Cypress does not run firefox in any elegant way:
So, I have geckodriver, I also copied it from home to /usr/local/bin. The version of Firefox is under 135, so it might work with CDP, but I do not know if my geckodriver works?
But still Cypress does not seeing my geckodriver and always try to copy own to /tmp/geckodriver, so this is the second issue.
I tried to solve this issue with ai advises:
Nothing helps. so, I still don't know how to set env variable GECKODRIVER_PATH=/home/$USER/.cargo/bin/geckodriver for cypress without pasting it to terminal and without touching my .bashrc or so. Can Cypress config provide all necessary settings without some additional handmade set of variables?
2. I cannot prevent Node and Cypress to download Geckodriver to /tmp/geckodriver.
After each run
npx cypress run --browser firefox --headed
this file appearsThis file has another size. And I need to block node to download it. I added to cypress.config.js
also I removed Cypress cache, as deepseek said:
But that did not help: node still puts geckodriver to /tmp and this actually breaks my security and also it is not useful, makes nodejs too uncontrollable.
Could you help me with those two issues? chatgpt and deepseek not helped.
I wish to run cypress in Firefox without necessarily set any variable in terminal.
And also I wish to block nodejs to download geckodriver.
Beta Was this translation helpful? Give feedback.
All reactions