test: fix get_element_tag_name test to expect lowercase tagname#60167
test: fix get_element_tag_name test to expect lowercase tagname#60167juliandescottes wants to merge 1 commit into
Community-TC (pull_request)
Collect results for all tests affected by a pull request in chrome but without the changes in the PR.
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2026-05-26T08:57:24.175Z
Resolved: 2026-05-26T09:01:07.349Z
Task Execution Time: 3 minutes, 43 seconds, 174 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: boFVM26YQYeGdulSePjpvQ
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
- public/results/wpt_report.json.gz
- public/results/wpt_screenshot.txt.gz
WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected task_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome
[taskcluster 2026-05-26 08:57:24.276Z] Task ID: boFVM26YQYeGdulSePjpvQ
[taskcluster 2026-05-26 08:57:24.276Z] Worker ID: 5007303271639473830
[taskcluster 2026-05-26 08:57:24.276Z] Worker Group: us-central1-f
[taskcluster 2026-05-26 08:57:24.276Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2026-05-26 08:57:24.276Z] Worker Pool: proj-wpt/ci
[taskcluster 2026-05-26 08:57:24.276Z] Worker Version: 46.1.0
[taskcluster 2026-05-26 08:57:24.276Z] Public IP: 34.59.113.86
[taskcluster 2026-05-26 08:57:24.276Z] Hostname: proj-wpt-ci-prlgup-orbgsox07nz-cua
b1e71f63927a - Started downloading
b1e71f63927a - Downloaded in 0.032 seconds
66587c81b81a - Started downloading
5b82b858ea7e - Started downloading
08c7e224535e - Started downloading
66587c81b81a - Downloaded in 0.2 seconds
08c7e224535e - Downloaded in 0.042 seconds
4f4fb700ef54 - Started downloading
4f4fb700ef54 - Downloaded in 0 seconds
32bbaaf98e4c - Started downloading
dd5257950bd4 - Started downloading
...(789 lines hidden)...
1:01.67 INFO STDOUT: """
1:01.67 INFO STDOUT: > assert response.status == errors[error_code]
1:01.67 INFO STDOUT: E AssertionError
1:01.67 INFO STDOUT: data = None
1:01.67 INFO STDOUT: error_code = 'no such element'
1:01.67 INFO STDOUT: response = <Response status=500 error=<JavascriptErrorException http_status=500>>
1:01.67 INFO STDOUT: webdriver/tests/support/classic/asserts.py
1:01.67 INFO STDOUT: :48: AssertionError
1:01.67 INFO STDOUT: __________________________ test_get_element_tag_name ___________________________
1:01.67 INFO STDOUT: session = <Session 94fac110020dec62749774c10eeaec83>
1:01.67 INFO STDOUT: inline = <function inline.<locals>.inline at 0x7f1d06b62e60>
1:01.67 INFO STDOUT: def test_get_element_tag_name(session, inline):
1:01.67 INFO STDOUT: session.url = inline("<input id=foo>")
1:01.67 INFO STDOUT: element = session.find.css("input", all=False)
1:01.67 INFO STDOUT:
1:01.67 INFO STDOUT: result = get_element_tag_name(session, element.id)
1:01.67 INFO STDOUT: > assert_success(result, "INPUT")
1:01.67 INFO STDOUT: element = <WebElement f.77AE0AFA15CCA054A9DECC8FDA23AB27.d.59B0933A5031A1B0DCD27D7DCC2AA28D.e.35>
1:01.67 INFO STDOUT: inline = <function inline.<locals>.inline at 0x7f1d06b62e60>
1:01.67 INFO STDOUT: result = <Response: status=200 body={"value": "input"}>
1:01.67 INFO STDOUT: session = <Session 94fac110020dec62749774c10eeaec83>
1:01.67 INFO STDOUT: webdriver/tests/classic/get_element_tag_name/get.py
1:01.67 INFO STDOUT: :95:
1:01.67 INFO STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1:01.67 INFO STDOUT: response = <Response: status=200 body={"value": "input"}>, value = 'INPUT'
1:01.67 INFO STDOUT: def assert_success(response, value=None):
1:01.67 INFO STDOUT: """
1:01.67 INFO STDOUT: Verify that the provided webdriver.Response instance described
1:01.67 INFO STDOUT: a valid success response as defined by `dfn-send-a-response` and
1:01.67 INFO STDOUT: the provided response value.
1:01.67 INFO STDOUT:
1:01.67 INFO STDOUT: :param response: ``webdriver.Response`` instance.
1:01.67 INFO STDOUT: :param value: Expected value of the response body, if any.
1:01.67 INFO STDOUT: """
1:01.67 INFO STDOUT: assert response.status == 200, str(response.error)
1:01.67 INFO STDOUT:
1:01.67 INFO STDOUT: if value is not None:
1:01.67 INFO STDOUT: > assert response.body["value"] == value
1:01.67 INFO STDOUT: E AssertionError
1:01.67 INFO STDOUT: response = <Response: status=200 body={"value": "input"}>
1:01.67 INFO STDOUT: value = 'INPUT'
1:01.67 INFO STDOUT: webdriver/tests/support/classic/asserts.py
1:01.67 INFO STDOUT: :73: AssertionError
1:01.67 INFO STDOUT: =========================== short test summary info ============================
1:01.67 INFO STDOUT: FAILED webdriver/tests/classic/get_element_tag_name/get.py::test_no_browsing_context - AssertionError
1:01.67 INFO STDOUT: FAILED webdriver/tests/classic/get_element_tag_name/get.py::test_no_such_element_with_shadow_root - AssertionError
1:01.67 INFO STDOUT: FAILED webdriver/tests/classic/get_element_tag_name/get.py::test_get_element_tag_name - AssertionError
1:01.67 INFO STDOUT: ========================= 3 failed, 8 passed in 3.49s ==========================
1:01.67 INFO Closing logging queue
1:01.67 INFO queue closed
1:01.76 SUITE_END
web-platform-test
~~~~~~~~~~~~~~~~~
Ran 12 checks (11 subtests, 1 tests)
Expected results: 9
Unexpected results: 3
subtest: 3 (3 fail)
Error Summary
-------------
/webdriver/tests/classic/get_element_tag_name/get.py
FAIL test_no_browsing_context - AssertionError
session = <Session 94fac110020dec62749774c10eeaec83>, closed_frame = None
def test_no_browsing_context(session, closed_frame):
response = get_element_tag_name(session, "foo")
> assert_error(response, "no such window")
closed_frame = None
response = <Response status=404 error=<NoSuchElementException http_status=404>>
session = <Session 94fac110020dec62749774c10eeaec83>
webdriver/tests/classic/get_element_tag_name/get.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response status=404 error=<NoSuchElementException http_status=404>>
error_code = 'no such window', data = None
def assert_error(response, error_code, data=None):
"""
Verify that the provided webdriver.Response instance described
a valid error response as defined by `dfn-send-an-error` and
the provided error code.
:param response: ``webdriver.Response`` instance.
:param error_code: String value of the expected error code
:param data: Optional dictionary containing additional information about the error.
"""
assert response.status == errors[error_code]
assert "value" in response.body
> assert response.body["value"]["error"] == error_code
E AssertionError
data = None
error_code = 'no such window'
response = <Response status=404 error=<NoSuchElementException http_status=404>>
webdriver/tests/support/classic/asserts.py:51: AssertionError
FAIL test_no_such_element_with_shadow_root - AssertionError
session = <Session 94fac110020dec62749774c10eeaec83>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f1d06b63760>
def test_no_such_element_with_shadow_root(session, get_test_page):
session.url = get_test_page()
element = session.find.css("custom-element", all=False)
result = get_element_tag_name(session, element.shadow_root.id)
> assert_error(result, "no such element")
element = <WebElement f.685406629E9D5CA30F455D4D47536155.d.EEBC7B61FCAECD1BAEE69860270892E2.e.5>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f1d06b63760>
result = <Response status=500 error=<JavascriptErrorException http_status=500>>
session = <Session 94fac110020dec62749774c10eeaec83>
webdriver/tests/classic/get_element_tag_name/get.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response status=500 error=<JavascriptErrorException http_status=500>>
error_code = 'no such element', data = None
def assert_error(response, error_code, data=None):
"""
Verify that the provided webdriver.Response instance described
a valid error response as defined by `dfn-send-an-error` and
the provided error code.
:param response: ``webdriver.Response`` instance.
:param error_code: String value of the expected error code
:param data: Optional dictionary containing additional information about the error.
"""
> assert response.status == errors[error_code]
E AssertionError
data = None
error_code = 'no such element'
response = <Response status=500 error=<JavascriptErrorException http_status=500>>
webdriver/tests/support/classic/asserts.py:48: AssertionError
FAIL test_get_element_tag_name - AssertionError
session = <Session 94fac110020dec62749774c10eeaec83>
inline = <function inline.<locals>.inline at 0x7f1d06b62e60>
def test_get_element_tag_name(session, inline):
session.url = inline("<input id=foo>")
element = session.find.css("input", all=False)
result = get_element_tag_name(session, element.id)
> assert_success(result, "INPUT")
element = <WebElement f.77AE0AFA15CCA054A9DECC8FDA23AB27.d.59B0933A5031A1B0DCD27D7DCC2AA28D.e.35>
inline = <function inline.<locals>.inline at 0x7f1d06b62e60>
result = <Response: status=200 body={"value": "input"}>
session = <Session 94fac110020dec62749774c10eeaec83>
webdriver/tests/classic/get_element_tag_name/get.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response: status=200 body={"value": "input"}>, value = 'INPUT'
def assert_success(response, value=None):
"""
Verify that the provided webdriver.Response instance described
a valid success response as defined by `dfn-send-a-response` and
the provided response value.
:param response: ``webdriver.Response`` instance.
:param value: Expected value of the response body, if any.
"""
assert response.status == 200, str(response.error)
if value is not None:
> assert response.body["value"] == value
E AssertionError
response = <Response: status=200 body={"value": "input"}>
value = 'INPUT'
webdriver/tests/support/classic/asserts.py:73: AssertionError
1:01.76 INFO Got 1 unexpected results, with 0 unexpected passes
1:01.77 wptserve INFO Stopped http server on 127.0.0.1:8000
1:01.77 wptserve INFO Stopped http server on 127.0.0.1:8002
1:01.77 wptserve INFO Stopped http server on 127.0.0.1:8001
1:01.77 wptserve INFO Stopped http server on 127.0.0.1:8443
1:01.77 wptserve INFO Stopped http server on 127.0.0.1:8003
1:01.79 wptserve INFO Stopped http server on 127.0.0.1:8446
1:01.79 wptserve INFO Stopped http server on 127.0.0.1:8445
1:01.79 wptserve INFO Stopped http server on 127.0.0.1:8444
1:01.79 wptserve INFO Stopped http server on 127.0.0.1:9000
1:01.79 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
1:01.99 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
1:01.99 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
1:02.03 INFO Removed font: Ahem.ttf
1:02.06 INFO Closing logging queue
1:02.06 INFO queue closed
1:02.06 INFO Tolerating 1 unexpected results
[taskcluster 2026-05-26 09:01:05.655Z] === Task Finished ===
[taskcluster 2026-05-26 09:01:06.626Z] Successful task run with exit code: 0 completed in 222.352 seconds