You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
If you don't have a c:\tmp folder in Windows (and it is not there by default), then calling .screenshot() results in:
{ Error: ENOENT: no such file or directory, open 'C:\tmp\cj5tupcpw0000fgl2l9a1dvl8.png'
at Object.fs.openSync (fs.js:652:18)
at Object.fs.writeFileSync (fs.js:1299:33)
at LocalRuntime.<anonymous> (C:\Users\user\Code\headless-chrome\node_modules\chromeless\dist\src\chrome\local-runtime.js:354:28)
at step (C:\Users\user\Code\headless-chrome\node_modules\chromeless\dist\src\chrome\local-runtime.js:32:23)
at Object.next (C:\Users\user\Code\headless-chrome\node_modules\chromeless\dist\src\chrome\local-runtime.js:13:53)
at fulfilled (C:\Users\user\Code\headless-chrome\node_modules\chromeless\dist\src\chrome\local-runtime.js:4:58)
at <anonymous>
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\tmp\\cj5tupcpw0000fgl2l9a1dvl8.png' }
Manually creating that folder solves the problem, but I think the function should either:
Allow providing a path to save the screenshot at (best)
Get the location of the Windows (or other OS) tmp folder, and use that
The text was updated successfully, but these errors were encountered:
This should get resolved once someone takes on #113. Part of @adieuadieu's acceptance criteria is to make use of os.tmpdir() for screenshots and PDFs, which should solve the cross-platform problem.
If you don't have a
c:\tmp
folder in Windows (and it is not there by default), then calling.screenshot()
results in:Manually creating that folder solves the problem, but I think the function should either:
tmp
folder, and use thatThe text was updated successfully, but these errors were encountered: