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 }}
Repository navigation
[Bug]: Download event's saveAs fails with chromium connected over the CDP #34542
I'm running playwright in a container that is connecting to the Chrome started on the host machine like so: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug --remote-allow-origins="*"
I'm connecting to it from playwright roughly like so:
Should save the file to "/tmp/workspaces/file.pdf on the machine running playwright.
Actual behavior
An exception happens.
Error: download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-MedLPD/537add71-ff6a-4dfa-85e7-f6f2f68080f8'
Same thing happens when trying to use the stream.
After further investigation, it looks like it tries to copy the file locally(on the machine running playwright) instead of getting the file over the CDP protocol.
Activity
vvzz commentedon Jan 29, 2025
Also this seems like it could be potentially related to #15999
agg23 commentedon Jan 31, 2025
Some functionality doesn't function using CDP. You should instead use Playwright's communication protocol using
connect().oscar-o-oneill commentedon May 23, 2025
Oh man, not planned? I'm using CDP at the moment but this limitation really sucks...
fix(connectOverCDP): preserve browser-default downloads in the defaul…