Skip to content

[🐛 Bug]: Could not get absolute path of downloaded file #2936

@nilic10

Description

@nilic10

What happened?

Hi all,
I'm using docker selenium full grid (router, distributor, sessions, session-queue, events-bus are on the same VM, and docker-nodes are on different VM-s).
In my tests, I need to download files, and also in some cases, I need to open downloaded files(mostly HTML) in the same session on container browser (wit driver.get($downloded_file_path)), but I'm not able to get path of downloaded file, because it's downloaded in /tmp folder in some generic folder (/tmp/uuid7913403656254552707a679ff8f-89ad-45c8-827b-16e28cede7ba/download4164586578271991079).

Do you have some workaround for getting path of downloaded file? Maybe to add one more parameter 'path' in response of /session/sessionId/se/files endpoint ?

I have this SE_OPTS in my docker node containers:
- SE_OPTS=--enable-managed-downloads true
and also downloadsEnabled capability is set on true on WebDriver:
- setCapability("se:downloadsEnabled", true);

Command used to start Selenium Grid with Docker (or Kubernetes)

router, distributor, sessions, session-queue, events-bus are started on the same VM using single docker compose file:
docker compose -f docker-compose-full-grid.yml up -d

docker-nodes are run on different VM-s using docker compose:
docker compose -f docker-compose.yml up -d

Relevant log output

-

Operating System

Ubuntu

Docker Selenium version (image tag)

4.34.0

Selenium Grid chart version (chart version)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions