webdriver: Implement send alert text (#38140)

Implement webdriver `SendAlertText` command

Tests:
https://github.com/longvatrong111/servo/actions/runs/16342669929
https://github.com/longvatrong111/servo/actions/runs/16342671477

cc: @xiaochengh

---------

Signed-off-by: batu_hoang <hoang.binh.trong@huawei.com>
Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
batu_hoang 2025-07-18 05:24:50 +08:00 committed by GitHub
parent 3ce95b2ba5
commit f0e10e63e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 91 additions and 46 deletions

View file

@ -3,7 +3,7 @@
expected: ERROR
[test_accept_confirm]
expected: FAIL
expected: ERROR
[test_accept_prompt]
expected: FAIL
@ -11,11 +11,8 @@
[test_accept_in_popup_window]
expected: FAIL
[test_null_response_value]
expected: FAIL
[test_accept_alert]
expected: FAIL
[test_unexpected_alert]
expected: FAIL
[test_no_browsing_context]
expected: ERROR

View file

@ -3,7 +3,7 @@
expected: ERROR
[test_dismiss_confirm]
expected: FAIL
expected: ERROR
[test_dismiss_prompt]
expected: FAIL
@ -11,11 +11,8 @@
[test_dismiss_in_popup_window]
expected: FAIL
[test_null_response_value]
expected: FAIL
[test_dismiss_alert]
expected: FAIL
[test_unexpected_alert]
expected: FAIL
[test_no_browsing_context]
expected: ERROR

View file

@ -1,31 +1,4 @@
[send.py]
[test_null_response_value]
expected: ERROR
[test_invalid_input[None\]]
expected: ERROR
[test_invalid_input[text1\]]
expected: ERROR
[test_invalid_input[42\]]
expected: ERROR
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL
[test_no_user_prompt]
expected: FAIL
[test_alert_element_not_interactable[alert\]]
expected: FAIL
[test_alert_element_not_interactable[confirm\]]
expected: FAIL
[test_chained_alert_element_not_interactable[alert\]]
expected: FAIL
@ -43,6 +16,3 @@
[test_send_alert_text[Fed\\terer\]]
expected: FAIL
[test_unexpected_alert]
expected: FAIL