I always use existing chrome do my job.
pw.chromium.connect_over_cdp(f'http://127.0.0.1:5566/', timeout=0)
works well.
Most of the time, I operate automatically, but often I need to manually download the results. At such times, the downloaded files end up being stored in a hard-to-find location.
the file always download to tmp folder like :
C:\Users\ADMINI~1\AppData\Local\Temp\2\playwright-artifacts-k8550A\c78a1a06-9d11-4eab-a4ed-d02323dff07e
hope some one can improve this .or is there any ways to set default download path when using cdp connection.
like pw.chromium.launch use downloads_path param to set default download place.
browser=pw.chromium.launch(downloads_path='c:/')
In that case, it would be very convenient.
I always use existing chrome do my job.
pw.chromium.connect_over_cdp(f'http://127.0.0.1:5566/', timeout=0)
works well.
Most of the time, I operate automatically, but often I need to manually download the results. At such times, the downloaded files end up being stored in a hard-to-find location.
the file always download to tmp folder like :
C:\Users\ADMINI~1\AppData\Local\Temp\2\playwright-artifacts-k8550A\c78a1a06-9d11-4eab-a4ed-d02323dff07e
hope some one can improve this .or is there any ways to set default download path when using cdp connection.
like pw.chromium.launch use downloads_path param to set default download place.
browser=pw.chromium.launch(downloads_path='c:/')
In that case, it would be very convenient.