-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
C-pyPython BindingsPython BindingsJ-awaiting answerQuestion asked of user; a reply moves it to triage againQuestion asked of user; a reply moves it to triage again
Description
🐛 Bug Report
A clear and concise description of what the bug is.
File upload with Chrome and Selenium 4.0.0b2 fails with:
File "/home/nijel/weblate/weblate/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 768, in _upload
raise e
File "/home/nijel/weblate/weblate/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 759, in _upload
return self._execute(Command.UPLOAD_FILE, {'file': content})['value']
File "/home/nijel/weblate/weblate/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 693, in _execute
return self._parent.execute(command, params)
File "/home/nijel/weblate/weblate/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 369, in execute
self.error_handler.check_response(response)
File "/home/nijel/weblate/weblate/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 236, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown command: unknown command: session/ef65ec6962b7f875385bacdb072ee837/se/file
Stacktrace:
#0 0x562d9d555069 <unknown>
#1 0x562d9d4f72d3 <unknown>
#2 0x562d9d281946 <unknown>
#3 0x562d9d2d575a <unknown>
#4 0x562d9d2d5574 <unknown>
#5 0x562d9d257d75 <unknown>
#6 0x562d9d258fa3 <unknown>
#7 0x562d9d522bc4 <unknown>
#8 0x562d9d5315ea <unknown>
#9 0x562d9d5312de <unknown>
#10 0x562d9d53598a <unknown>
#11 0x562d9d531e8b <unknown>
#12 0x562d9d517ff0 <unknown>
#13 0x562d9d257bdf <unknown>
#14 0x7f58aaa96d0a __libc_start_main
#15 0x562d9d25672a _startThere are already some related issues like #7666 or #8735, but they really don't give any hints how to address this.
It is broken since #8588, removing the se/ prefix from the Command.UPLOAD_FILE fixes the behavior.
To Reproduce
Detailed steps to reproduce the behavior:
element.send_keys(element._upload("screenshot.png"))
Expected behavior
The upload would work.
Test script or set of commands reproducing this issue
Reproducible in https://github.com/WeblateOrg/weblate CI: https://github.com/WeblateOrg/weblate/runs/2124766327?check_suite_focus=true
Environment
OS: Linux
Browser: Chrome
Browser version:89.0.4389.82
Browser Driver version: ChromeDriver 89.0.4389.82
Language Bindings version: Python 4.0.0b2
Selenium Grid version (if applicable):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-pyPython BindingsPython BindingsJ-awaiting answerQuestion asked of user; a reply moves it to triage againQuestion asked of user; a reply moves it to triage again