Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reported in output file #40

Open
ChrisSaturday opened this issue Nov 1, 2022 · 2 comments
Open

Error reported in output file #40

ChrisSaturday opened this issue Nov 1, 2022 · 2 comments

Comments

@ChrisSaturday
Copy link

ChrisSaturday commented Nov 1, 2022

environment:
Windows system
step:
when execute

npx @cypress/chrome-recorder D:\workspace\UIAutoTest\cypress811\cypressuinew\cypress\e2e\recording\record.json -o=D:\workspace\UIAutoTest\cypress811\cypressuinew\cypress\e2e\recording

error detail:

Running Cypress Chrome Recorder on D:\workspace\UIAutoTest\cypress811\cypressuinew\cypress\e2e\recording\record.json
There was an issue writing the output to D:\workspace\UIAutoTest\cypress811\cypressuinew\cypress\e2e\recording. Please check that it exists and try again.
@szykov
Copy link

szykov commented Nov 14, 2023

it was interesting to find out what is it. seems to be the problem is that on windows and on unix-like systems it uses different type of slashes. in order to make it work you need to use always '/' instead of '\'.

https://github.com/cypress-io/cypress-chrome-recorder/blob/953a6d46012b392e6cb25fe2f6f35a546b88a752/src/cli/transforms.ts#L98C28-L98C28

@Cladutora
Copy link

Hi @szykov, thx for your post. I'm having exactly the same issue on Windows, but unlike you I could not convert my file.

I've tried from un/installing and running everything from scratch to using many combinations of (/) back and fowards, and the result is the same.

Any other workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants