webdriver: Implement element clear (#38208)

Initial Implementation of [Element
Clear](https://w3c.github.io/webdriver/#element-clear).

Testing: `tests/wpt/tests/webdriver/tests/classic/element_clear/`

---------

Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com>
Signed-off-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja18@gmail.com>
Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-07-25 01:49:31 +08:00 committed by GitHub
parent 1fb782bc38
commit 4b12ae73fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 175 additions and 367 deletions

View file

@ -1,210 +1,15 @@
[clear.py]
[test_null_response_value]
expected: FAIL
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_invalid_value]
expected: FAIL
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[open\]]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_no_such_element_from_other_frame[open\]]
expected: FAIL
[test_no_such_element_from_other_frame[closed\]]
expected: FAIL
[test_stale_element_reference[top_context\]]
expected: FAIL
[test_stale_element_reference[child_context\]]
expected: FAIL
[test_pointer_interactable]
expected: FAIL
[test_keyboard_interactable]
expected: FAIL
[test_input[number-42-\]]
expected: FAIL
[test_input[range-42-50\]]
expected: FAIL
[test_input[email-foo@example.com-\]]
expected: FAIL
[test_input[password-password-\]]
expected: FAIL
[test_input[search-search-\]]
expected: FAIL
[test_input[tel-999-\]]
expected: FAIL
[test_input[text-text-\]]
expected: FAIL
[test_input[url-https://example.com/-\]]
expected: FAIL
[test_input[color-#ff0000-#000000\]]
expected: FAIL
[test_input[date-2017-12-26-\]]
expected: FAIL
[test_input[datetime-2017-12-26T19:48-\]]
expected: FAIL
[test_input[datetime-local-2017-12-26T19:48-\]]
expected: FAIL
[test_input[time-19:48-\]]
expected: FAIL
[test_input[month-2017-11-\]]
expected: FAIL
[test_input[week-2017-W52-\]]
expected: FAIL
[test_input_readonly[number\]]
expected: FAIL
[test_input_readonly[range\]]
expected: FAIL
[test_input_readonly[email\]]
expected: FAIL
[test_input_readonly[password\]]
expected: FAIL
[test_input_readonly[search\]]
expected: FAIL
[test_input_readonly[tel\]]
expected: FAIL
[test_input_readonly[text\]]
expected: FAIL
[test_input_readonly[url\]]
expected: FAIL
[test_input_readonly[color\]]
expected: FAIL
[test_input_readonly[date\]]
expected: FAIL
[test_input_readonly[datetime\]]
expected: FAIL
[test_input_readonly[datetime-local\]]
expected: FAIL
[test_input_readonly[time\]]
expected: FAIL
[test_input_readonly[month\]]
expected: FAIL
[test_input_readonly[week\]]
expected: FAIL
[test_input_readonly[file\]]
expected: FAIL
[test_textarea]
expected: FAIL
[test_textarea_readonly]
expected: FAIL
[test_input_file]
expected: FAIL
[test_input_file_multiple]
expected: FAIL
[test_button[button\]]
expected: FAIL
[test_button[reset\]]
expected: FAIL
[test_button[submit\]]
expected: FAIL
[test_button_with_subtree]
expected: FAIL
[test_contenteditable]
expected: FAIL
[test_designmode]
expected: FAIL
[test_resettable_element_focus_when_empty]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[number-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[email-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[url-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[date-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[datetime-local-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[time-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[month-foo\]]
expected: FAIL
[test_resettable_element_does_not_satisfy_validation_constraints[week-foo\]]
expected: FAIL
[test_non_editable_inputs[checkbox\]]
expected: FAIL
[test_non_editable_inputs[radio\]]
expected: FAIL
[test_non_editable_inputs[hidden\]]
expected: FAIL
[test_non_editable_inputs[submit\]]
expected: FAIL
[test_non_editable_inputs[button\]]
expected: FAIL
[test_non_editable_inputs[image\]]
expected: FAIL
[test_scroll_into_view]
expected: FAIL

View file

@ -1,114 +0,0 @@
[disabled.py]
[test_button[button\]]
expected: FAIL
[test_button[reset\]]
expected: FAIL
[test_button[submit\]]
expected: FAIL
[test_input[button\]]
expected: FAIL
[test_input[checkbox\]]
expected: FAIL
[test_input[color\]]
expected: FAIL
[test_input[date\]]
expected: FAIL
[test_input[datetime-local\]]
expected: FAIL
[test_input[email\]]
expected: FAIL
[test_input[file\]]
expected: FAIL
[test_input[image\]]
expected: FAIL
[test_input[month\]]
expected: FAIL
[test_input[number\]]
expected: FAIL
[test_input[password\]]
expected: FAIL
[test_input[radio\]]
expected: FAIL
[test_input[range\]]
expected: FAIL
[test_input[reset\]]
expected: FAIL
[test_input[search\]]
expected: FAIL
[test_input[submit\]]
expected: FAIL
[test_input[tel\]]
expected: FAIL
[test_input[text\]]
expected: FAIL
[test_input[time\]]
expected: FAIL
[test_input[url\]]
expected: FAIL
[test_input[week\]]
expected: FAIL
[test_textarea]
expected: FAIL
[test_fieldset_descendant]
expected: FAIL
[test_fieldset_descendant_first_legend]
expected: FAIL
[test_fieldset_descendant_not_first_legend]
expected: FAIL
[test_option]
expected: FAIL
[test_option_optgroup]
expected: FAIL
[test_option_select]
expected: FAIL
[test_optgroup_select]
expected: FAIL
[test_select]
expected: FAIL
[test_xhtml[button\]]
expected: FAIL
[test_xhtml[input\]]
expected: FAIL
[test_xhtml[select\]]
expected: FAIL
[test_xhtml[textarea\]]
expected: FAIL
[test_xml]
expected: FAIL

View file

@ -1,54 +0,0 @@
[user_prompts.py]
[test_accept[alert-None\]]
expected: FAIL
[test_accept[confirm-True\]]
expected: FAIL
[test_accept[prompt-\]]
expected: FAIL
[test_accept_and_notify[alert-None\]]
expected: FAIL
[test_accept_and_notify[confirm-True\]]
expected: FAIL
[test_accept_and_notify[prompt-\]]
expected: FAIL
[test_dismiss[alert-None\]]
expected: FAIL
[test_dismiss[confirm-False\]]
expected: FAIL
[test_dismiss[prompt-None\]]
expected: FAIL
[test_dismiss_and_notify[alert-None\]]
expected: FAIL
[test_dismiss_and_notify[confirm-False\]]
expected: FAIL
[test_dismiss_and_notify[prompt-None\]]
expected: FAIL
[test_ignore[alert\]]
expected: FAIL
[test_ignore[confirm\]]
expected: FAIL
[test_ignore[prompt\]]
expected: FAIL
[test_default[alert-None\]]
expected: FAIL
[test_default[confirm-False\]]
expected: FAIL
[test_default[prompt-None\]]
expected: FAIL