[bidi] setFiles tests assert only on the input value, never that the file was uploaded (all bindings)
I maintainer di solito rispondono entro 1 giorno
@AutomatedTester ci sta già lavorando.
Dal 9/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Feature and motivation
Every binding's input.setFiles test asserts only on the file input's value property. That shows the filename string was accepted; it does not show the file was attached or that its bytes were transmitted. A setFiles implementation that sent the filename but dropped the file would pass all of these tests.
The classic upload tests do prove the round trip — they submit the form and assert on what the upload endpoint echoed back into the target iframe, e.g. py/test/selenium/webdriver/common/upload_tests.py:41-48 and the corresponding tests in the other bindings.
Current setFiles tests, all value-only:
- Java —
java/test/org/openqa/selenium/bidi/input/SetFilesCommandTest.java - Ruby —
rb/spec/integration/selenium/webdriver/bidi/protocol/input_spec.rb - JS —
javascript/selenium-webdriver/test/bidi/setFiles_command_test.js - .NET —
dotnet/src/webdriver/BiDi/Input/InputModule.cs(consumers)
#18007 adds round-trip coverage on the Python side (set_files, submit, then assert the endpoint echoed back both the filename and the file content) plus a test that types into a text field and attaches a file in one flow. This issue is the parity follow-up for the other bindings.
Things to consider
- The shared
common/src/web/upload.htmlfixture has a file input and a submit button but no text field, so a combined type-and-upload test needs either a different fixture or a change to that one. I avoided changing it in #18007 — see the next point. java/test/org/openqa/selenium/environment/webserver/UploadHandler.javareuses a singlevaluesmap across all multipart parts (line 59:valuesis created once outside the loop, andallParts.add(values)adds the same reference repeatedly). Adding another form part toupload.htmlwould therefore concatenate that part's content into what the handler returns, probably breaking Java's existing upload assertions. Worth fixing that handler first if we want a shared fixture with more than one field. Note the Python test server (py/test/selenium/webdriver/common/webserver.py:177-202) echoes the whole multipart body instead, so it does not have this problem — the two servers behave differently here.- Asserting on the file content rather than only the filename is what makes these tests non-vacuous. In #18007 I verified this by temporarily passing an empty file list and confirming the test fails; worth doing the same when porting.
- Also worth deciding whether these belong next to each binding's existing BiDi input tests or alongside its classic upload tests.
- Lingua principale
- Java
- Stelle
- 34.6k
- Fork
- 8.7k
- Merge medio
- 1g 23h
- PR unite (30g)
- 86
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SeleniumHQ/selenium
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
SeleniumHQ/selenium#18323 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
SeleniumHQ/selenium#17843 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verboseForse di nuovo libera @stefanpoia l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
SeleniumHQ/selenium#17836 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
A-needs-triaging C-java D-chrome D-firefox I-defect OS-linux
Difficoltà 4/5 1-2 giorni Idoneità per principianti 53/100
SeleniumHQ/selenium#18324 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: [py] Generated bidi.UserAgentClientHints is empty — inline CDDL params drop the commandForse già presa @titusfortner l’ha presa 3 giorni fa. ApertaC-py OS-mac
SeleniumHQ/selenium#18312 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SeleniumHQ/selenium
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btraceio/jafar#228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
jenkinsci/git-client-plugin#1807 ·
-
area-templates triage:bot-seen triage:needs-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/aspire#22356 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/flink-agents#1395 ·
I maintainer di solito rispondono entro 1 giorno