[py][bidi] input.setFiles has no file detector, so local paths do not work against a remote browser
メンテナーはふだん 1 日以内に返信
@AutomatedTester がすでに取り組んでいます。
2026年9月9日 から。
評価
この issue はまだ評価されていません。
説明
Feature and motivation
BiDi input.setFiles has no equivalent of the classic file detector, so attaching a local file to a file input does not work when the browser is on another machine (Grid, Docker, cloud provider). This is a functional gap between classic and BiDi, not just a coverage gap.
Under classic, WebElement.send_keys on a remote driver runs the given paths through file_detector and uploads each one to the node before dispatching the keys:
So this works against a remote browser today:
driver.find_element(By.ID, "upload").send_keys("/path/on/my/laptop/test_file.txt")
Under BiDi, input.setFiles sends the raw path straight through to the browser, which resolves it on the browser host. There is no upload step and no detector hook, so the same call against a remote browser either fails or silently attaches nothing:
driver.input.set_files(driver.current_window_handle, element_ref, ["/path/on/my/laptop/test_file.txt"])
This came out of reviewing the Python BiDi interaction code (#18007). It is not Python-specific — Java, Ruby, JS, and .NET all pass paths through to setFiles unchanged, so whatever we decide should apply across bindings.
Things to consider
- The existing
setFilestests never catch this: they all run against a local browser and assert on the input'svalue. The new round-trip tests in #18007 are also local-only. A remote-specific test would be needed either way. - Whether the fix belongs in the bindings (detect a local path, upload it via the classic
/session/{id}/fileendpoint, then pass the returned remote path tosetFiles) or whether BiDi should grow a file-transfer primitive of its own. The former works today but means a BiDi call depends on a classic endpoint, which is awkward for a BiDi-only future. - Whether
setFilesshould respectdriver.file_detectorat all, or whether users should be expected to place files on the browser host themselves. If the latter, we should document that clearly, because the classic behaviour sets the opposite expectation. - Spec question: whether this should be raised with the WebDriver BiDi spec rather than solved per-binding.
Filing so the decision is recorded rather than discovered by users migrating from classic to BiDi.
- 主要言語
- Java
- スター
- 34.6k
- フォーク
- 8.7k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 86
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SeleniumHQ/selenium のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
SeleniumHQ/selenium#18323 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
SeleniumHQ/selenium#17843 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verbose再び着手できるかも @stefanpoia が 25 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
SeleniumHQ/selenium#17836 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
A-needs-triaging C-java D-chrome D-firefox I-defect OS-linux
難易度 4/5 1〜2日 初心者へのやさしさ 53/100
SeleniumHQ/selenium#18324 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: [py] Generated bidi.UserAgentClientHints is empty — inline CDDL params drop the command対応中かも @titusfortner が 3 日前に担当しました。 オープンC-py OS-mac
SeleniumHQ/selenium#18312 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
SeleniumHQ/selenium の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
btraceio/jafar#228 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
jenkinsci/git-client-plugin#1807 ·
-
area-templates triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire#22356 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/flink-agents#1395 ·
メンテナーはふだん 1 日以内に返信