diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index e72d0d88cad..120d9c18e77 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -1047,7 +1047,7 @@ pub(crate) fn handle_get_element_shadow_root( .send( get_known_element(documents, pipeline, element_id).map(|element| { element - .GetShadowRoot() + .shadow_root() .map(|x| x.upcast::().unique_id(pipeline)) }), ) diff --git a/tests/wpt/meta/webdriver/tests/classic/find_element_from_shadow_root/find.py.ini b/tests/wpt/meta/webdriver/tests/classic/find_element_from_shadow_root/find.py.ini index ecaaaaf9ca6..5330ee265a2 100644 --- a/tests/wpt/meta/webdriver/tests/classic/find_element_from_shadow_root/find.py.ini +++ b/tests/wpt/meta/webdriver/tests/classic/find_element_from_shadow_root/find.py.ini @@ -1,21 +1,3 @@ [find.py] [test_no_browsing_context] expected: FAIL - - [test_find_element[closed-css selector-#linkText\]] - expected: FAIL - - [test_find_element[closed-link text-full link text\]] - expected: FAIL - - [test_find_element[closed-partial link text-link text\]] - expected: FAIL - - [test_find_element[closed-tag name-a\]] - expected: FAIL - - [test_find_element[closed-xpath-//a\]] - expected: FAIL - - [test_find_element_in_nested_shadow_root[closed\]] - expected: FAIL diff --git a/tests/wpt/meta/webdriver/tests/classic/find_elements_from_shadow_root/find.py.ini b/tests/wpt/meta/webdriver/tests/classic/find_elements_from_shadow_root/find.py.ini index aa385206d20..5330ee265a2 100644 --- a/tests/wpt/meta/webdriver/tests/classic/find_elements_from_shadow_root/find.py.ini +++ b/tests/wpt/meta/webdriver/tests/classic/find_elements_from_shadow_root/find.py.ini @@ -1,21 +1,3 @@ [find.py] [test_no_browsing_context] expected: FAIL - - [test_find_elements[closed-css selector-#linkText\]] - expected: FAIL - - [test_find_elements[closed-link text-full link text\]] - expected: FAIL - - [test_find_elements[closed-partial link text-link text\]] - expected: FAIL - - [test_find_elements[closed-tag name-a\]] - expected: FAIL - - [test_find_elements[closed-xpath-//a\]] - expected: FAIL - - [test_find_elements_in_nested_shadow_root[closed\]] - expected: FAIL diff --git a/tests/wpt/meta/webdriver/tests/classic/perform_actions/key.py.ini b/tests/wpt/meta/webdriver/tests/classic/perform_actions/key.py.ini index 1e21171928d..1f39266f2fd 100644 --- a/tests/wpt/meta/webdriver/tests/classic/perform_actions/key.py.ini +++ b/tests/wpt/meta/webdriver/tests/classic/perform_actions/key.py.ini @@ -4,9 +4,3 @@ [test_key_down_closes_browsing_context] expected: FAIL - - [test_element_in_shadow_tree[outer-closed\]] - expected: FAIL - - [test_element_in_shadow_tree[inner-closed\]] - expected: FAIL