I have an issue to write cypress output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have an issue to write cypress output

hi guys , really i need your help , i'm using cypress for testing , so i decided to use google chrom recorder extention , i saved the json file , but i have a problem to transform it to cypress code when i use the commandes mentioned in cypress site i get this issue npm install -g @cypress/chrome-recorder npx @cypress/chrome-recorder C:\Users\jebalia\downloads\cypresstest.json --output=cypress/integration => Running Cypress Chrome Recorder on C:\Users\jebalia\downloads\cypresstest.json There was an issue writing the output to cypress/integration. Please check that it exists and try again.

11th Jul 2022, 7:18 PM
Ramzi Jebalia
Ramzi Jebalia - avatar
1 Answer
+ 1
I faced the same problem and solved it. You should use relative path for .json file and output folder. Using absolute path like C:\Users\.... is wrong. example usages are; npx @cypress/chrome-recorder <relative path to target test file> npx @cypress/chrome-recorder <relative path to target test folder>/*.json npx @cypress/chrome-recorder <relative path to target test folder>/*.json --output=relative-folder-name for details: https://www.npmjs.com/package/@cypress/chrome-recorder
22nd Aug 2022, 1:45 PM
Hasan DAG