[WebDriver] Fully implement "switch to (parent) frame" (#37685)

1. Separate the handling of ["switch to parent
frame"](https://w3c.github.io/webdriver/#switch-to-parent-frame) from
the rest as the processing is a bit different
2. Implement "Select frame by 16-bits numbered ID" for ["switch to
frame"](https://w3c.github.io/webdriver/#switch-to-frame)
3. Implement other missing steps

Testing: All WebDriver Conformance test with new passing cases

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-06-26 15:44:16 +08:00 committed by GitHub
parent 253fb247f5
commit f9880637e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 79 additions and 61 deletions

View file

@ -4,6 +4,3 @@
[test_textarea_append]
expected: FAIL
[test_date]
expected: FAIL

View file

@ -20,8 +20,5 @@
[test_disabled]
expected: FAIL
[test_transparent_element]
expected: FAIL
[test_readonly_element]
expected: FAIL

View file

@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_startnode_from_other_frame]
expected: FAIL
[test_find_element[xpath-//a\]]
expected: FAIL

View file

@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: FAIL
[test_no_such_shadow_root_with_shadow_root_from_other_frame]
expected: FAIL
[test_find_element[open-xpath-//a\]]
expected: FAIL

View file

@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_startnode_from_other_frame]
expected: FAIL
[test_find_elements[xpath-//a\]]
expected: FAIL

View file

@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: FAIL
[test_no_such_shadow_root_with_shadow_root_from_other_frame]
expected: FAIL
[test_find_elements[open-xpath-//a\]]
expected: FAIL

View file

@ -1,15 +0,0 @@
[switch_number.py]
[test_frame_id_number_index_out_of_bounds[1\]]
expected: FAIL
[test_frame_id_number_index_out_of_bounds[65535\]]
expected: FAIL
[test_frame_id_number_index[0-foo\]]
expected: FAIL
[test_frame_id_number_index[1-bar\]]
expected: FAIL
[test_frame_id_number_index_nested]
expected: FAIL