webdriver: Implement support for simple dialogs (#37913)

Implement webdriver user prompt: accept alert, dismiss alert, get alert
text.

Tests:
https://github.com/longvatrong111/servo/actions/runs/16175408035
https://github.com/longvatrong111/servo/actions/runs/16175409545

Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
batu_hoang 2025-07-10 11:15:46 +08:00 committed by GitHub
parent 84f0cd5801
commit 2e44aba753
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 296 additions and 42 deletions

View file

@ -1,19 +1,6 @@
[accept.py]
expected: TIMEOUT
[test_null_response_value]
expected: FAIL
[test_no_top_level_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL
[test_no_user_prompt]
expected: FAIL
[test_accept_alert]
expected: FAIL
expected: ERROR
[test_accept_confirm]
expected: FAIL
@ -21,8 +8,11 @@
[test_accept_prompt]
expected: FAIL
[test_unexpected_alert]
expected: FAIL
[test_accept_in_popup_window]
expected: FAIL
[test_null_response_value]
expected: FAIL
[test_accept_alert]
expected: FAIL

View file

@ -1,16 +1,6 @@
[dismiss.py]
expected: TIMEOUT
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL
[test_no_user_prompt]
expected: FAIL
[test_dismiss_alert]
expected: FAIL
expected: ERROR
[test_dismiss_confirm]
expected: FAIL
@ -18,8 +8,11 @@
[test_dismiss_prompt]
expected: FAIL
[test_unexpected_alert]
expected: FAIL
[test_dismiss_in_popup_window]
expected: FAIL
[test_null_response_value]
expected: FAIL
[test_dismiss_alert]
expected: FAIL