Skip to content

[Feature] Allow CDP connection with custom downloadsPath #10700

Description

Currently when I'm trying to connect browser over CDP, Playwright always uses temp folder:

const artifactsDir = await fs.promises.mkdtemp(ARTIFACTS_FOLDER);

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions