Repository navigation
Add WebDriver BiDi file dialog automation support and WPT tests - #64840
Open
sweetFish8 wants to merge 2 commits into
Open
sweetFish8 wants to merge 2 commits into
sweetFish8 wants to merge 2 commits into
Conversation
Add WebDriver BiDi and testdriver.js support for automating file picker dialogs and creating temporary test directories: - WebDriver BiDi client methods browser.set_file_dialog_behavior and browser.create_temporary_directory (plus InvalidBase64Exception) - testdriver.js APIs test_driver.bidi.browser.set_file_dialog_behavior, test_driver.bidi.browser.create_temporary_directory, and convenience wrappers test_driver.set_file_picker_behavior and test_driver.create_temporary_directory - WebDriver BiDi WPT tests for browser.setFileDialogBehavior and browser.createTemporaryDirectory - Automated HTML <input type=file> and File System Access API (showOpenFilePicker, showSaveFilePicker, showDirectoryPicker) picker tests
wpt-pr-bot
requested review from
AutomatedTester,
DanielRyanSmith,
annevk,
foolip,
jcscottiii,
jdm,
jgraham,
jonathan-j-lee,
jrandolf,
juliandescottes,
lutien,
sadym-chromium,
shs96c,
tkent-google and
whimboo
November 6, 2026 05:33
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion WPT PR for:
browser.setFileDialogBehavior: Addbrowser.setFileDialogBehaviorcommand w3c/webdriver-bidi#1193browser.createTemporaryDirectory: Addbrowser.createTemporaryDirectoryandbrowser.removeTemporaryDirectorycommands w3c/webdriver-bidi#1202test_driver.set_file_picker_behavior&test_driver.create_temporary_directory): RFC 246: File picker automation in WPT rfcs#246Summary
browser.set_file_dialog_behaviorandbrowser.create_temporary_directory(along withInvalidBase64Exception).test_driver.bidi.browser.set_file_dialog_behavior,test_driver.bidi.browser.create_temporary_directory, and convenience wrapperstest_driver.set_file_picker_behaviorandtest_driver.create_temporary_directorytoresources/testdriver.jsandwptrunner.webdriver/tests/bidi/browser/set_file_dialog_behavior/andwebdriver/tests/bidi/browser/create_temporary_directory/.<input type="file">(html/semantics/forms/the-input-element/input-file-picker-automation.html) and File System Access API (file-system-access/showOpenFilePicker.https.html,showSaveFilePicker.https.html,showDirectoryPicker.https.html).