Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Cannot upload (manually or through selenium) #2444

Open
alvitawa opened this issue Oct 25, 2024 · 1 comment
Open

[🐛 Bug]: Cannot upload (manually or through selenium) #2444

alvitawa opened this issue Oct 25, 2024 · 1 comment

Comments

@alvitawa
Copy link

alvitawa commented Oct 25, 2024

What happened?

I cannot upload files in the docker standalone. Neither through manually selecting a file on noVNC or through selenium. When doing it manually I can select a file but then it just does nothing. With send_keys also nothing happens. Happens both on selenium/standalone-firefox:latest and selenium/standalone-chromium:latest
(if I run it locally on chrome it works fine of course)

Also, saving the website with Ctrl+S fails, not sure if it is related:
image

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

#!/bin/bash

docker stop selenium-grid
docker rm selenium-grid
docker run -d \
  -p 4444:4444 \
  -p 7900:7900 \
  -v $PWD/tests/share:/home/seluser/Downloads \
  --shm-size="2g" \
  --name=selenium-grid \
  --network testing-network \
  selenium/standalone-firefox:131.0-20241024
#  selenium/standalone-firefox:latest
#  selenium/standalone-chromium:latest

Relevant log output

Upload INFO 2024-10-25 11:17:19,442  sim_utils.py:120 -> upload_document(): Uploading file: /app/tests/assets/small_double_column.pdf
          POSTht DEBG 2024-10-25 11:17:19,445  selenium.webdriver.remote.remote_connection remote_connection.py:305 -> execute(): POST http://selenium-grid:4444/wd/hub/session/a41d3e00-1612-40b6-bd83-80aa2a469f7b/se/file {'file': 'UEsDBBQAAAAIAAJNU1mDPKx+MDoAAMJFAAAXAAAAc21hbGxfZG91YmxlX2NvbHVtbi5wZGbNvHVc\nlNsWMEyKEoISEgIjjdQ0DAh...', 'id': 'eb674223-53a5-4866-b6bf-92b167b0709d'}
          Remote DEBG 2024-10-25 11:17:19,461  selenium.webdriver.remote.remote_connection remote_connection.py:334 -> _request(): Remote response: status=200 | data={
  "value": "\u002ftmp\u002fsession12995099737285531279a41d3e00-1612-40b6-bd83-80aa2a469f7b\u002fupload14499275874306421758file\u002fsmall_double_column.pdf"
} | headers=HTTPHeaderDict({'content-length': '160', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json; charset=utf-8'})
          Finish DEBG 2024-10-25 11:17:19,461  selenium.webdriver.remote.remote_connection remote_connection.py:361 -> _request(): Finished Request
          POSTht DEBG 2024-10-25 11:17:19,462  selenium.webdriver.remote.remote_connection remote_connection.py:305 -> execute(): POST http://selenium-grid:4444/wd/hub/session/a41d3e00-1612-40b6-bd83-80aa2a469f7b/element/eb674223-53a5-4866-b6bf-92b167b0709d/value {'text': '/tmp/session12995099737285531279a41d3e00-1612-40b6-bd83-80aa2a469f7b/upload14499275874306421758file/...', 'value': ['/', 't', 'm', 'p', '/', 's', 'e', 's', 's', 'i', 'o', 'n', '1', '2', '9', '9', '5', '0', '9', '9', '7', '3', '7', '2', '8', '5', '5', '3', '1', '2', '7', '9', 'a', '4', '1', 'd', '3', 'e', '0', '0', '-', '1', '6', '1', '2', '-', '4', '0', 'b', '6', '-', 'b', 'd', '8', '3', '-', '8', '0', 'a', 'a', '2', 'a', '4', '6', '9', 'f', '7', 'b', '/', 'u', 'p', 'l', 'o', 'a', 'd', '1', '4', '4', '9', '9', '2', '7', '5', '8', '7', '4', '3', '0', '6', '4', '2', '1', '7', '5', '8', 'f', 'i', 'l', 'e', '/', 's', 'm', 'a', 'l', 'l', '_', 'd', 'o', 'u', 'b', 'l', 'e', '_', 'c', 'o', 'l', 'u', 'm', 'n', '.', 'p', 'd', 'f']}
          Remote DEBG 2024-10-25 11:17:19,478  selenium.webdriver.remote.remote_connection remote_connection.py:334 -> _request(): Remote response: status=200 | data={"value":null} | headers=HTTPHeaderDict({'content-length': '14', 'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache'})
          Finish DEBG 2024-10-25 11:17:19,479  selenium.webdriver.remote.remote_connection remote_connection.py:361 -> _request(): Finished Request

Operating System

ubuntu

Docker Selenium version (image tag)

131.0-20241024

Selenium Grid chart version (chart version)

No response

Copy link

@alvitawa, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

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

No branches or pull requests

1 participant