Implement wb element send keys for file input (#37224)

We can now send keys to file input, which results in uploading file with
given filename. Needs
`pref=dom_testing_html_input_element_select_files_enabled` flag to work.

https://w3c.github.io/webdriver/#element-send-keys

Testing:
`tests/wpt/meta/webdriver/tests/classic/element_send_keys/{events,
file_upload}.py.`

Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-06-05 14:48:14 +08:00 committed by GitHub
parent 165ac32f18
commit d66e4fc459
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 78 additions and 55 deletions

View file

@ -1,7 +1,4 @@
[events.py]
[test_file_upload]
expected: FAIL
[test_form_control_send_text[input\]]
expected: FAIL

View file

@ -1,50 +1,19 @@
[file_upload.py]
expected: TIMEOUT
[test_empty_text]
expected: FAIL
[test_multiple_files]
expected: FAIL
[test_multiple_files_last_path_not_found]
expected: FAIL
[test_multiple_files_without_multiple_attribute]
expected: FAIL
[test_multiple_files_send_twice]
expected: FAIL
[test_multiple_files_reset_with_element_clear]
expected: FAIL
[test_single_file]
expected: FAIL
[test_single_file_replaces_without_multiple_attribute]
expected: FAIL
[test_single_file_appends_with_multiple_attribute]
expected: FAIL
[test_transparent]
expected: FAIL
[test_obscured]
expected: FAIL
[test_outside_viewport]
expected: FAIL
[test_hidden]
expected: FAIL
[test_display_none]
expected: FAIL
[test_not_focused]
expected: FAIL
[test_focused]
expected: ERROR