[Gecko Bug 1866431] Send full codepoints when creating key events #43722
Community-TC Integration / wpt-chrome-dev-results
succeeded
Dec 19, 2023 in 3m 39s
Community-TC (pull_request)
Collect results for all tests affected by a pull request in chrome.
Details
View task in Taskcluster
View logs in Taskcluster
WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --no-headless --verify-log-full --enable-swiftshader chrome
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
inline = <function inline.<locals>.inline at 0x7f1cfae77f70>, closed = True
@pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
def test_no_such_element_from_other_window_handle(session, inline, closed):
session.url = inline("<div id='parent'><p/>")
element = session.find.css("#parent", all=False)
new_handle = session.new_window()
if closed:
session.window.close()
session.window_handle = new_handle
response = element_send_keys(session, element, "foo")
> assert_error(response, "no such element")
closed = True
element = <WebElement A7460A9A73F5A1E914138B60B6B9CCF8_element_3>
inline = <function inline.<locals>.inline at 0x7f1cfae77f70>
new_handle = 'A9C04066497199C2C85911501704058D'
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
webdriver/tests/classic/element_send_keys/send_keys.py:86:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'
def assert_error(response, error_code):
"""
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
"""
assert response.status == errors[error_code]
assert "value" in response.body
> assert response.body["value"]["error"] == error_code
E AssertionError: assert 'stale element reference' == 'no such element'
E - no such element
E + stale element reference
error_code = 'no such element'
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
webdriver/tests/support/asserts.py:53: AssertionError
FAIL test_no_such_element_from_other_frame[open] - AssertionError: assert 'stale element reference' == 'no such element'
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f1cfae11a60>
closed = False
@pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
def test_no_such_element_from_other_frame(session, get_test_page, closed):
session.url = get_test_page(as_frame=True)
frame = session.find.css("iframe", all=False)
session.switch_frame(frame)
element = session.find.css("input#text", all=False)
session.switch_frame("parent")
if closed:
session.execute_script("arguments[0].remove();", args=[frame])
response = element_send_keys(session, element, "foo")
> assert_error(response, "no such element")
closed = False
element = <WebElement C157915CDBA3640C2F8357E28FABA4CC_element_5>
frame = <WebElement 8BF92597C6D8DDDCA0B0954EB3B4EC12_element_10>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f1cfae11a60>
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
webdriver/tests/classic/element_send_keys/send_keys.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'
def assert_error(response, error_code):
"""
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
"""
assert response.status == errors[error_code]
assert "value" in response.body
> assert response.body["value"]["error"] == error_code
E AssertionError: assert 'stale element reference' == 'no such element'
E - no such element
E + stale element reference
error_code = 'no such element'
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
webdriver/tests/support/asserts.py:53: AssertionError
FAIL test_no_such_element_from_other_frame[closed] - AssertionError: assert 'stale element reference' == 'no such element'
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f1cfae3a310>
closed = True
@pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
def test_no_such_element_from_other_frame(session, get_test_page, closed):
session.url = get_test_page(as_frame=True)
frame = session.find.css("iframe", all=False)
session.switch_frame(frame)
element = session.find.css("input#text", all=False)
session.switch_frame("parent")
if closed:
session.execute_script("arguments[0].remove();", args=[frame])
response = element_send_keys(session, element, "foo")
> assert_error(response, "no such element")
closed = True
element = <WebElement FEA5870E4C6F4ADA946E74CD89103F5F_element_15>
frame = <WebElement 85FD30D66B750A426218BC2571958183_element_19>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f1cfae3a310>
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
webdriver/tests/classic/element_send_keys/send_keys.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'
def assert_error(response, error_code):
"""
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
"""
assert response.status == errors[error_code]
assert "value" in response.body
> assert response.body["value"]["error"] == error_code
E AssertionError: assert 'stale element reference' == 'no such element'
E - no such element
E + stale element reference
error_code = 'no such element'
response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
webdriver/tests/support/asserts.py:53: AssertionError
FAIL test_surrogates - AssertionError: unknown error (500): unknown error: ChromeDriver only supports characters in the BMP
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
inline = <function inline.<locals>.inline at 0x7f1cfae29a60>
def test_surrogates(session, inline):
session.url = inline("<input>")
element = session.find.css("input", all=False)
text = "🦥🍄"
response = element_send_keys(session, element, text)
> assert_success(response)
element = <WebElement FB81DB4C91CACB363C32332AE2173C9E_element_61>
inline = <function inline.<locals>.inline at 0x7f1cfae29a60>
response = <Response status=500 error=<UnknownErrorException http_status=500>>
session = <Session 810efeae419659cd6a5df95e8cfbebb4>
text = '🦥🍄'
webdriver/tests/classic/element_send_keys/send_keys.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <Response status=500 error=<UnknownErrorException http_status=500>>
value = None
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)
E AssertionError: unknown error (500): unknown error: ChromeDriver only supports characters in the BMP
E (Session info: chrome=122.0.6182.0)
E
E Remote-end stacktrace:
E
E #0 0x55f75c4d01c3 <unknown>
E #1 0x55f75c1b1047 <unknown>
E #2 0x55f75c236c5e <unknown>
E #3 0x55f75c1f63a4 <unknown>
E #4 0x55f75c1f477b <unknown>
E #5 0x55f75c21ea52 <unknown>
E #6 0x55f75c1f0748 <unknown>
E #7 0x55f75c21ec1e <unknown>
E #8 0x55f75c23d672 <unknown>
E #9 0x55f75c21e7f3 <unknown>
E #10 0x55f75c1ee855 <unknown>
E #11 0x55f75c1ef85e <unknown>
E #12 0x55f75c4927bb <unknown>
E #13 0x55f75c49676a <unknown>
E #14 0x55f75c47e965 <unknown>
E #15 0x55f75c4973df <unknown>
E #16 0x55f75c4623cf <unknown>
E #17 0x55f75c4bde58 <unknown>
E #18 0x55f75c4be022 <unknown>
E #19 0x55f75c4cf364 <unknown>
E #20 0x7f9c96859609 start_thread
E
E assert 500 == 200
E +500
E -200
response = <Response status=500 error=<UnknownErrorException http_status=500>>
value = None
webdriver/tests/support/asserts.py:68: AssertionError
0:32.53 INFO Got 1 unexpected results, with 0 unexpected passes
0:32.53 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
0:32.83 wptserve INFO Stopped http server on 127.0.0.1:8443
0:32.99 wptserve INFO Stopped http server on 127.0.0.1:9000
0:32.99 wptserve INFO Stopped http server on 127.0.0.1:8445
0:32.99 wptserve INFO Stopped http server on 127.0.0.1:8000
0:32.99 wptserve INFO Stopped http server on 127.0.0.1:8003
0:33.00 wptserve INFO Stopped http server on 127.0.0.1:8001
0:33.00 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:33.00 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:33.00 wptserve INFO Stopped http server on 127.0.0.1:8444
0:33.00 wptserve INFO Stopped http server on 127.0.0.1:8002
0:33.00 wptserve INFO Stopped http server on 127.0.0.1:8446
0:33.10 INFO Removed font: Ahem.ttf
0:33.12 INFO Closing logging queue
0:33.12 INFO queue closed
0:33.12 INFO Tolerating 1 unexpected results
[taskcluster 2023-12-19 08:26:45.395Z] === Task Finished ===
[taskcluster 2023-12-19 08:26:46.222Z] Successful task run with exit code: 0 completed in 167.212 seconds
Loading