[py][bidi] _bidi layer has no fileDialogOpened coverage or handler helpers, unlike the older bidi package
Maintainers usually reply within 1 day
@AutomatedTester is already working on this.
Since Sep 9, 2026.
Assessment
This issue has not been assessed yet.
Description
Feature and motivation
The newer Python _bidi layer has no coverage or ergonomic API for the input.fileDialogOpened event, while the older bidi package has both. Anything migrating from one to the other loses that functionality.
The older suite covers the event in three tests:
test_file_dialog_event_handler_multiple—py/test/selenium/webdriver/common/bidi/input_tests.py:370test_file_dialog_event_handler_unsubscribe—py/test/selenium/webdriver/common/bidi/input_tests.py:405test_multiple_file_dialog_handlers—py/test/selenium/webdriver/common/bidi/input_tests.py:779
py/test/selenium/webdriver/common/_bidi/input_tests.py has none — a grep for file_dialog in that file returns nothing.
The convenience helpers are in the same position. add_file_dialog_handler / remove_file_dialog_handler are injected by the older generator's enhancement manifest:
That manifest is consumed by generate_bidi.py, which emits selenium/webdriver/common/bidi/. The _bidi layer is generated by generate_bidi_protocol.py and is raw protocol only, so it has no equivalent subscribe/unsubscribe ergonomics for this event.
Noticed while reviewing the Python BiDi input code for upload coverage (#18007), which touches the _bidi input suite.
Things to consider
- Whether
_bidiis intended to stay raw protocol with ergonomics layered above it, or whether it should carry the handler helpers itself. That answer decides whether this is "port the manifest enhancement" or "add the helpers at whatever layer replaces it". - The
FileDialogInfodataclass and itsfrom_jsonare also manifest-provided (same file, just above the methods), so the event's deserialisation needs a home too, not just the subscribe helpers. - Once there is somewhere to hang them, the three tests above port over fairly mechanically.
- Worth checking whether any other manifest enhancements are in the same position, so this is fixed as a class rather than one event at a time.
- Dominant language
- Java
- Stars
- 34.6k
- Forks
- 8.7k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 107
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SeleniumHQ/selenium
-
C-py I-defect
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SeleniumHQ/selenium#18438 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
SeleniumHQ/selenium#18323 · 1 comment ·
Maintainers usually reply within 1 day
-
B-build C-py I-enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
SeleniumHQ/selenium#18435 · 1 comment ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: Bindings change the user's options when Selenium Manager supplies a browserPossibly taken @Liz-Lian claimed this 2 days ago. OpenC-dotnet C-java C-nodejs C-py C-rb I-defect
Difficulty 4/5 3-5 days Newbie friendliness 45/100
SeleniumHQ/selenium#18428 ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: [rust] Selenium Manager can return a browser from the cache before it finishes copyingPossibly taken @Liz-Lian claimed this 2 days ago. OpenC-rust I-defect
Difficulty 3/5 1-2 days Newbie friendliness 65/100
SeleniumHQ/selenium#18427 ·
Maintainers usually reply within 1 day
All issues in SeleniumHQ/selenium
Similar issues
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
? - Needs Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainers usually reply within 1 day
-
[source-facebook-pages] post stream never returns attachments.media_typePossibly taken @v-k-data claimed this today. Openarea/connectors needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
floci-io/floci#10107 · 1 comment ·
Maintainers usually reply within 1 day