Currently when I'm trying to connect browser over CDP, Playwright always uses temp folder:
|
const artifactsDir = await fs.promises.mkdtemp(ARTIFACTS_FOLDER); |
|
downloadsPath: artifactsDir, |
I wish to pass custom folder for downloadsPath in order to achieve access for downloaded files from Selenoid container.
This is available only if download path is equals to "/home/selenium/Downloads" (docs) which I can't set in Playwright right now.
Additionally, it would be nice if Playwright could store UUID of saved file, same as suggestedFilename property.
That would help to find a particular file via Selenoid API (docs)
Currently when I'm trying to connect browser over CDP, Playwright always uses temp folder:
playwright/packages/playwright-core/src/server/chromium/chromium.ts
Line 66 in f802c27
playwright/packages/playwright-core/src/server/chromium/chromium.ts
Line 93 in f802c27
I wish to pass custom folder for
downloadsPathin order to achieve access for downloaded files from Selenoid container.This is available only if download path is equals to
"/home/selenium/Downloads"(docs) which I can't set in Playwright right now.Additionally, it would be nice if Playwright could store UUID of saved file, same as
suggestedFilenameproperty.That would help to find a particular file via Selenoid API (docs)