WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
323694
REGRESSION(
320518@main
): C++ node resolution reports "no such element" for stale elements
https://bugs.webkit.org/show_bug.cgi?id=323694
Summary
REGRESSION(320518@main): C++ node resolution reports "no such element" for st...
Lauro Moura
Reported
2026-09-08 14:37:27 PDT
320518@main
added a new internal Automation error type, "StaleNode". This can be raised by AutomationSessionProxy.js::_nodeForIdentifier, but the wrapper nodeForIdentifier swallows all errors, returning only null. This in turn surfaces as a "no such element" instead of the expected "stale element reference". This is causing regressions in the following tests: imported/w3c/webdriver/tests/classic/get_computed_label/get.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/get_computed_label/get.py::test_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/get_computed_role/get.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/get_computed_role/get.py::test_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/get_element_rect/get.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/get_element_rect/get.py::test_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/perform_actions/pointer_mouse.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/perform_actions/pointer_mouse.py::test_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/perform_actions/pointer_pen.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/perform_actions/pointer_pen.py::test_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/perform_actions/pointer_touch.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/perform_actions/pointer_touch.py::test_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/switch_to_frame/switch_webelement.py::test_frame_id_webelement_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/switch_to_frame/switch_webelement.py::test_frame_id_webelement_stale_element_reference[child_context] imported/w3c/webdriver/tests/classic/take_element_screenshot/screenshot.py::test_stale_element_reference[top_context] imported/w3c/webdriver/tests/classic/take_element_screenshot/screenshot.py::test_stale_element_reference[child_context]
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-09-15 14:38:13 PDT
<
rdar://problem/187509909
>
Brent Fulgham
Comment 2
2026-09-24 16:06:15 PDT
*** This bug has been marked as a duplicate of
bug 323692
***
Brent Fulgham
Comment 3
2026-09-24 16:07:11 PDT
I'm reopening to land the corrected test cases, though.
Brent Fulgham
Comment 4
2026-09-24 16:10:36 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/74862
EWS
Comment 5
2026-09-24 17:54:16 PDT
Test gardening commit
321858@main
(4b3249f2dd32): <
https://commits.webkit.org/321858@main
> Reviewed commits have been landed. Closing PR #74862 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug