Closed Bug 1837775 Opened 1 year ago Closed 1 year ago

Intermittent Wd | <random> - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null

Categories

(Remote Protocol :: WebDriver BiDi, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1830616

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: intermittent-failure)

Filed by: imoraru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=418823934&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RMG1X9VTSSyNXu5Mtki0ww/runs/0/artifacts/public/logs/live_backing.log


[task 2023-06-10T13:22:08.091Z] 13:22:08     INFO - PID 9028 | 1686403328022	RemoteAgent	DEBUG	WebDriverBiDiConnection fbfe2324-ad43-4aff-a88b-aab261622c92 closed
[task 2023-06-10T13:22:08.092Z] 13:22:08     INFO - PID 9028 | 1686403328023	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/timeouts {"implicit": 0}
[task 2023-06-10T13:22:08.093Z] 13:22:08     INFO - PID 9028 | 1686403328023	Marionette	DEBUG	0 -> [0,36,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2023-06-10T13:22:08.094Z] 13:22:08     INFO - PID 9028 | 1686403328024	Marionette	DEBUG	0 <- [1,36,null,{"value":null}]
[task 2023-06-10T13:22:08.095Z] 13:22:08     INFO - PID 9028 | 1686403328024	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.096Z] 13:22:08     INFO - PID 9028 | 1686403328025	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/timeouts {"pageLoad": 300000}
[task 2023-06-10T13:22:08.097Z] 13:22:08     INFO - PID 9028 | 1686403328026	Marionette	DEBUG	0 -> [0,37,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2023-06-10T13:22:08.098Z] 13:22:08     INFO - PID 9028 | 1686403328026	Marionette	DEBUG	0 <- [1,37,null,{"value":null}]
[task 2023-06-10T13:22:08.099Z] 13:22:08     INFO - PID 9028 | 1686403328026	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.099Z] 13:22:08     INFO - PID 9028 | 1686403328027	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/timeouts {"script": 30000}
[task 2023-06-10T13:22:08.100Z] 13:22:08     INFO - PID 9028 | 1686403328027	Marionette	DEBUG	0 -> [0,38,"WebDriver:SetTimeouts",{"script":30000}]
[task 2023-06-10T13:22:08.101Z] 13:22:08     INFO - PID 9028 | 1686403328027	Marionette	DEBUG	0 <- [1,38,null,{"value":null}]
[task 2023-06-10T13:22:08.101Z] 13:22:08     INFO - PID 9028 | 1686403328028	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.102Z] 13:22:08     INFO - PID 9028 | 1686403328029	webdriver::server	DEBUG	-> GET /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window
[task 2023-06-10T13:22:08.103Z] 13:22:08     INFO - PID 9028 | 1686403328029	Marionette	DEBUG	0 -> [0,39,"WebDriver:GetWindowHandle",{}]
[task 2023-06-10T13:22:08.104Z] 13:22:08     INFO - PID 9028 | 1686403328029	Marionette	DEBUG	0 <- [1,39,null,{"value":"fe5beb73-5424-40f8-8178-91ea16c968a0"}]
[task 2023-06-10T13:22:08.105Z] 13:22:08     INFO - PID 9028 | 1686403328029	webdriver::server	DEBUG	<- 200 OK {"value":"fe5beb73-5424-40f8-8178-91ea16c968a0"}
[task 2023-06-10T13:22:08.105Z] 13:22:08     INFO - PID 9028 | 1686403328030	webdriver::server	DEBUG	-> GET /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window
[task 2023-06-10T13:22:08.106Z] 13:22:08     INFO - PID 9028 | 1686403328030	Marionette	DEBUG	0 -> [0,40,"WebDriver:GetWindowHandle",{}]
[task 2023-06-10T13:22:08.107Z] 13:22:08     INFO - PID 9028 | 1686403328031	Marionette	DEBUG	0 <- [1,40,null,{"value":"fe5beb73-5424-40f8-8178-91ea16c968a0"}]
[task 2023-06-10T13:22:08.108Z] 13:22:08     INFO - PID 9028 | 1686403328031	webdriver::server	DEBUG	<- 200 OK {"value":"fe5beb73-5424-40f8-8178-91ea16c968a0"}
[task 2023-06-10T13:22:08.109Z] 13:22:08     INFO - PID 9028 | 1686403328032	webdriver::server	DEBUG	-> GET /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window/handles
[task 2023-06-10T13:22:08.109Z] 13:22:08     INFO - PID 9028 | 1686403328032	Marionette	DEBUG	0 -> [0,41,"WebDriver:GetWindowHandles",{}]
[task 2023-06-10T13:22:08.110Z] 13:22:08     INFO - PID 9028 | 1686403328032	Marionette	DEBUG	0 <- [1,41,null,["fe5beb73-5424-40f8-8178-91ea16c968a0"]]
[task 2023-06-10T13:22:08.111Z] 13:22:08     INFO - PID 9028 | 1686403328033	webdriver::server	DEBUG	<- 200 OK {"value":["fe5beb73-5424-40f8-8178-91ea16c968a0"]}
[task 2023-06-10T13:22:08.112Z] 13:22:08     INFO - PID 9028 | 1686403328034	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window {"handle": "fe5beb73-5424-40f8-8178-91ea16c968a0"}
[task 2023-06-10T13:22:08.114Z] 13:22:08     INFO - PID 9028 | 1686403328034	Marionette	DEBUG	0 -> [0,42,"WebDriver:SwitchToWindow",{"handle":"fe5beb73-5424-40f8-8178-91ea16c968a0"}]
[task 2023-06-10T13:22:08.115Z] 13:22:08     INFO - PID 9028 | 1686403328035	Marionette	DEBUG	0 <- [1,42,null,{"value":null}]
[task 2023-06-10T13:22:08.115Z] 13:22:08     INFO - PID 9028 | 1686403328035	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.116Z] 13:22:08     INFO - PID 9028 | 1686403328036	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/alert/dismiss {}
[task 2023-06-10T13:22:08.117Z] 13:22:08     INFO - PID 9028 | 1686403328036	Marionette	DEBUG	0 -> [0,43,"WebDriver:DismissAlert",{}]
[task 2023-06-10T13:22:08.118Z] 13:22:08     INFO - PID 9028 | 1686403328037	Marionette	DEBUG	0 <- [1,43,{"error":"no such alert","message":"","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Er ... ote/content/marionette/server.sys.mjs:265:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:496:20\n"},null]
[task 2023-06-10T13:22:08.120Z] 13:22:08     INFO - PID 9028 | 1686403328037	webdriver::server	DEBUG	<- 404 Not Found {"value":{"error":"no such alert","message":"","stacktrace":"RemoteError@chrome://remote/content/shared/Remo ... ontent/marionette/server.sys.mjs:265:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:496:20\n"}}
[task 2023-06-10T13:22:08.120Z] 13:22:08     INFO - PID 9028 | 1686403328038	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window {"handle": "fe5beb73-5424-40f8-8178-91ea16c968a0"}
[task 2023-06-10T13:22:08.123Z] 13:22:08     INFO - PID 9028 | 1686403328038	Marionette	DEBUG	0 -> [0,44,"WebDriver:SwitchToWindow",{"handle":"fe5beb73-5424-40f8-8178-91ea16c968a0"}]
[task 2023-06-10T13:22:08.123Z] 13:22:08     INFO - PID 9028 | 1686403328039	Marionette	DEBUG	0 <- [1,44,null,{"value":null}]
[task 2023-06-10T13:22:08.124Z] 13:22:08     INFO - PID 9028 | 1686403328039	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.125Z] 13:22:08     INFO - PID 9028 | 1686403328040	webdriver::server	DEBUG	-> GET /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window
[task 2023-06-10T13:22:08.126Z] 13:22:08     INFO - PID 9028 | 1686403328041	Marionette	DEBUG	0 -> [0,45,"WebDriver:GetWindowHandle",{}]
[task 2023-06-10T13:22:08.127Z] 13:22:08     INFO - PID 9028 | 1686403328041	Marionette	DEBUG	0 <- [1,45,null,{"value":"fe5beb73-5424-40f8-8178-91ea16c968a0"}]
[task 2023-06-10T13:22:08.129Z] 13:22:08     INFO - PID 9028 | 1686403328041	webdriver::server	DEBUG	<- 200 OK {"value":"fe5beb73-5424-40f8-8178-91ea16c968a0"}
[task 2023-06-10T13:22:08.129Z] 13:22:08     INFO - PID 9028 | 1686403328042	webdriver::server	DEBUG	-> GET /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window/handles
[task 2023-06-10T13:22:08.130Z] 13:22:08     INFO - PID 9028 | 1686403328042	Marionette	DEBUG	0 -> [0,46,"WebDriver:GetWindowHandles",{}]
[task 2023-06-10T13:22:08.131Z] 13:22:08     INFO - PID 9028 | 1686403328043	Marionette	DEBUG	0 <- [1,46,null,["fe5beb73-5424-40f8-8178-91ea16c968a0"]]
[task 2023-06-10T13:22:08.132Z] 13:22:08     INFO - PID 9028 | 1686403328043	webdriver::server	DEBUG	<- 200 OK {"value":["fe5beb73-5424-40f8-8178-91ea16c968a0"]}
[task 2023-06-10T13:22:08.133Z] 13:22:08     INFO - PID 9028 | 1686403328044	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window {"handle": "fe5beb73-5424-40f8-8178-91ea16c968a0"}
[task 2023-06-10T13:22:08.135Z] 13:22:08     INFO - PID 9028 | 1686403328045	Marionette	DEBUG	0 -> [0,47,"WebDriver:SwitchToWindow",{"handle":"fe5beb73-5424-40f8-8178-91ea16c968a0"}]
[task 2023-06-10T13:22:08.135Z] 13:22:08     INFO - PID 9028 | 1686403328045	Marionette	DEBUG	0 <- [1,47,null,{"value":null}]
[task 2023-06-10T13:22:08.137Z] 13:22:08     INFO - PID 9028 | 1686403328045	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.137Z] 13:22:08     INFO - PID 9028 | 1686403328046	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/window/rect {"width": 800, "height": 600}
[task 2023-06-10T13:22:08.139Z] 13:22:08     INFO - PID 9028 | 1686403328046	Marionette	DEBUG	0 -> [0,48,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2023-06-10T13:22:08.140Z] 13:22:08     INFO - PID 9028 | 1686403328047	Marionette	TRACE	Requested window geometry matches
[task 2023-06-10T13:22:08.140Z] 13:22:08     INFO - PID 9028 | 1686403328047	Marionette	DEBUG	0 <- [1,48,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2023-06-10T13:22:08.141Z] 13:22:08     INFO - PID 9028 | 1686403328047	webdriver::server	DEBUG	<- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2023-06-10T13:22:08.142Z] 13:22:08     INFO - PID 9028 | 1686403328048	webdriver::server	DEBUG	-> POST /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32/frame {"id": null}
[task 2023-06-10T13:22:08.143Z] 13:22:08     INFO - PID 9028 | 1686403328048	Marionette	DEBUG	0 -> [0,49,"WebDriver:SwitchToFrame",{"id":null}]
[task 2023-06-10T13:22:08.144Z] 13:22:08     INFO - PID 9028 | 1686403328049	Marionette	TRACE	[11] MarionetteCommands actor created for window id 8589934594
[task 2023-06-10T13:22:08.145Z] 13:22:08     INFO - PID 9028 | 1686403328050	Marionette	DEBUG	0 <- [1,49,null,{"value":null}]
[task 2023-06-10T13:22:08.146Z] 13:22:08     INFO - PID 9028 | 1686403328051	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.147Z] 13:22:08     INFO - PID 9028 | 1686403328053	webdriver::server	DEBUG	-> DELETE /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32
[task 2023-06-10T13:22:08.148Z] 13:22:08     INFO - PID 9028 | 1686403328053	Marionette	DEBUG	0 -> [0,50,"Marionette:Quit",{"flags":["eForceQuit"]}]
[task 2023-06-10T13:22:08.149Z] 13:22:08     INFO - PID 9028 | 1686403328053	Marionette	INFO	Stopped listening on port 61964
[task 2023-06-10T13:22:08.150Z] 13:22:08     INFO - PID 9028 | 1686403328054	Marionette	TRACE	[11] MarionetteCommands actor destroyed for window id 8589934594
[task 2023-06-10T13:22:08.150Z] 13:22:08     INFO - PID 9028 | 1686403328054	Marionette	TRACE	[3] MarionetteCommands actor destroyed for window id 6442450945
[task 2023-06-10T13:22:08.152Z] 13:22:08     INFO - PID 9028 | 1686403328055	WebDriver BiDi	DEBUG	Unregistered session handler: /session/aec3c8bb-d401-4f58-af63-4a2d7ef7ef32
[task 2023-06-10T13:22:08.153Z] 13:22:08     INFO - PID 9028 | 1686403328057	RemoteAgent	TRACE	MessageHandler ROOT for session aec3c8bb-d401-4f58-af63-4a2d7ef7ef32 is being destroyed
[task 2023-06-10T13:22:08.153Z] 13:22:08     INFO - PID 9028 | 1686403328057	RemoteAgent	TRACE	Unregistered MessageHandler ROOT for session aec3c8bb-d401-4f58-af63-4a2d7ef7ef32
[task 2023-06-10T13:22:08.154Z] 13:22:08     INFO - PID 9028 | 1686403328085	Marionette	TRACE	Received observer notification quit-application
[task 2023-06-10T13:22:08.155Z] 13:22:08     INFO - PID 9028 | 1686403328089	Marionette	TRACE	Received observer notification quit-application
[task 2023-06-10T13:22:08.155Z] 13:22:08     INFO - PID 9028 | 1686403328089	RemoteAgent	TRACE	Received observer notification quit-application
[task 2023-06-10T13:22:08.156Z] 13:22:08     INFO - PID 9028 | 1686403328090	Marionette	DEBUG	Marionette stopped listening
[task 2023-06-10T13:22:08.157Z] 13:22:08     INFO - PID 9028 | 1686403328091	Marionette	DEBUG	0 <- [1,50,null,{"cause":"shutdown","forced":false,"in_app":true}]
[task 2023-06-10T13:22:08.158Z] 13:22:08     INFO - PID 9028 | 1686403328104	RemoteAgent	TRACE	MessageHandler WINDOW_GLOBAL for session aec3c8bb-d401-4f58-af63-4a2d7ef7ef32 is being destroyed
[task 2023-06-10T13:22:08.159Z] 13:22:08     INFO - PID 9028 | 1686403328104	RemoteAgent	TRACE	Unregistered MessageHandler WINDOW_GLOBAL for session aec3c8bb-d401-4f58-af63-4a2d7ef7ef32
[task 2023-06-10T13:22:08.160Z] 13:22:08     INFO - PID 9028 | 1686403328108	RemoteAgent	DEBUG	Resetting recommended pref browser.contentblocking.features.standard
[task 2023-06-10T13:22:08.160Z] 13:22:08     INFO - PID 9028 | 1686403328108	RemoteAgent	DEBUG	Resetting recommended pref network.cookie.cookieBehavior
[task 2023-06-10T13:22:08.161Z] 13:22:08     INFO - PID 9028 | 1686403328109	webdriver::server	DEBUG	Teardown session
[task 2023-06-10T13:22:08.161Z] 13:22:08     INFO - PID 9028 | 1686403328113	Marionette	DEBUG	Closed connection 0
[task 2023-06-10T13:22:08.431Z] 13:22:08     INFO - PID 9028 | 1686403328431	geckodriver::browser	DEBUG	Browser process stopped: exit code: 0
[task 2023-06-10T13:22:08.433Z] 13:22:08     INFO - PID 9028 | 1686403328432	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2023-06-10T13:22:08.437Z] 13:22:08     INFO - STDOUT: ================================== FAILURES ===================================
[task 2023-06-10T13:22:08.438Z] 13:22:08     INFO - STDOUT: __________ test_release_char_sequence_sends_keyup_events_in_reverse ___________
[task 2023-06-10T13:22:08.438Z] 13:22:08     INFO - STDOUT: bidi_session = <webdriver.bidi.client.BidiSession object at 0x000002AFF7812D90>
[task 2023-06-10T13:22:08.439Z] 13:22:08     INFO - STDOUT: top_context = {'children': [], 'context': 'fe5beb73-5424-40f8-8178-91ea16c968a0', 'parent': None, 'url': 'about:blank'}
[task 2023-06-10T13:22:08.440Z] 13:22:08     INFO - STDOUT: load_static_test_page = <function load_static_test_page.<locals>.load_static_test_page at 0x000002AFF7821160>
[task 2023-06-10T13:22:08.442Z] 13:22:08     INFO - STDOUT: get_focused_key_input = <function get_focused_key_input.<locals>.get_focused_key_input at 0x000002AFF7821280>
[task 2023-06-10T13:22:08.443Z] 13:22:08     INFO - STDOUT:     async def test_release_char_sequence_sends_keyup_events_in_reverse(
[task 2023-06-10T13:22:08.443Z] 13:22:08     INFO - STDOUT:         bidi_session, top_context, load_static_test_page, get_focused_key_input
[task 2023-06-10T13:22:08.444Z] 13:22:08     INFO - STDOUT:     ):
[task 2023-06-10T13:22:08.445Z] 13:22:08     INFO - STDOUT:         await load_static_test_page(page="test_actions.html")
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/input/release_actions/sequence.py | test_release_char_sequence_sends_keyup_events_in_reverse - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x000002AFF7812D90>
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - top_context = {'children': [], 'context': 'fe5beb73-5424-40f8-8178-91ea16c968a0', 'parent': None, 'url': 'about:blank'}
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - load_static_test_page = <function load_static_test_page.<locals>.load_static_test_page at 0x000002AFF7821160>
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - get_focused_key_input = <function get_focused_key_input.<locals>.get_focused_key_input at 0x000002AFF7821280>
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO -     async def test_release_char_sequence_sends_keyup_events_in_reverse(
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO -         bidi_session, top_context, load_static_test_page, get_focused_key_input
[task 2023-06-10T13:22:08.453Z] 13:22:08     INFO -     ):
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -         await load_static_test_page(page="test_actions.html")
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - >       await get_focused_key_input()
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x000002AFF7812D90>
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - get_focused_key_input = <function get_focused_key_input.<locals>.get_focused_key_input at 0x000002AFF7821280>
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - load_static_test_page = <function load_static_test_page.<locals>.load_static_test_page at 0x000002AFF7821160>
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - top_context = {'children': [],
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -  'context': 'fe5beb73-5424-40f8-8178-91ea16c968a0',
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -  'parent': None,
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -  'url': 'about:blank'}
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - tests\web-platform\tests\webdriver\tests\bidi\input\release_actions\sequence.py:15: 
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO - tests\web-platform\tests\webdriver\tests\bidi\input\conftest.py:13: in get_focused_key_input
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -     return await bidi_session.script.call_function(
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -         bidi_session = <webdriver.bidi.client.BidiSession object at 0x000002AFF7812D90>
[task 2023-06-10T13:22:08.454Z] 13:22:08     INFO -         context    = {'children': [],
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -  'context': 'fe5beb73-5424-40f8-8178-91ea16c968a0',
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -  'parent': None,
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -  'url': 'about:blank'}
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO - tests\web-platform\tests\tools\webdriver\webdriver\bidi\modules\_module.py:76: in inner
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -     result = result_fn(self, result)
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -         cmd_name   = 'script.callFunction'
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -         future     = <Future finished result={'exceptionDetails': {'columnNumber': 16, 'exception': {'type': 'error'}, 'lineNumber': 2, 'stackTrace': {'callFrames': [{'columnNumber': 16, 'functionName': '', 'lineNumber': 2, 'url': 'about:blank'}, {'columnNumber': 15, 'functionName': '', 'lineNumber': 4, 'url': 'about:blank'}]}, ...}, 'realm': 'd5968363-e77...-ae7cbf720d33', 'type': 'exception'}>
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -         kwargs     = {'await_promise': False,
[task 2023-06-10T13:22:08.455Z] 13:22:08     INFO -  'function_declaration': '() => {\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                          '                const elem = '
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                          'document.getElementById("keys");\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                          '                elem.focus();\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                          '                return elem;\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                          '            }',
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -  'target': {'context': 'fe5beb73-5424-40f8-8178-91ea16c968a0'}}
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -         mod_name   = 'script'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -         name       = 'call_function'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -         owner      = <class 'webdriver.bidi.modules.script.Script'>
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -         params     = {'awaitPromise': False,
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -  'functionDeclaration': '() => {\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                         '                const elem = '
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                         'document.getElementById("keys");\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                         '                elem.focus();\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                         '                return elem;\n'
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -                         '            }',
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -  'target': {'context': 'fe5beb73-5424-40f8-8178-91ea16c968a0'}}
[task 2023-06-10T13:22:08.456Z] 13:22:08     INFO -         params_fn  = <function Script.call_function at 0x000002AFF7563D30>
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -         raw_result = False
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -         result     = {'exceptionDetails': {'columnNumber': 16,
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                       'exception': {'type': 'error'},
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                       'lineNumber': 2,
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                       'stackTrace': {'callFrames': [{'columnNumber': 16,
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                      'functionName': '',
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                      'lineNumber': 2,
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                      'url': 'about:blank'},
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                     {'columnNumber': 15,
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                      'functionName': '',
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                      'lineNumber': 4,
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                                                      'url': 'about:blank'}]},
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                       'text': 'TypeError: can\'t access property "focus", elem '
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -                               'is null'},
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -  'realm': 'd5968363-e770-4a76-bb52-ae7cbf720d33',
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -  'type': 'exception'}
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -         result_fn  = <function Script._call_function at 0x000002AFF7563DC0>
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO -         self       = <webdriver.bidi.modules.script.Script object at 0x000002AFF78102E0>
[task 2023-06-10T13:22:08.457Z] 13:22:08     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - self = <webdriver.bidi.modules.script.Script object at 0x000002AFF78102E0>
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - result = {'exceptionDetails': {'columnNumber': 16, 'exception': {'type': 'error'}, 'lineNumber': 2, 'stackTrace': {'callFrames'..., 'lineNumber': 4, 'url': 'about:blank'}]}, ...}, 'realm': 'd5968363-e770-4a76-bb52-ae7cbf720d33', 'type': 'exception'}
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -     @call_function.result
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -     def _call_function(self, result: Mapping[str, Any]) -> Any:
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -         assert "type" in result
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -     
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -         if result["type"] == "success":
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -             return result["result"]
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -         elif result["type"] == "exception":
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - >           raise ScriptEvaluateResultException(result)
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - E           webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - E           
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - E           Stacktrace:
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - E           
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - E           eval code@about:blank:2:16
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - E           eval code@about:blank:4:15
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO - result     = {'exceptionDetails': {'columnNumber': 16,
[task 2023-06-10T13:22:08.458Z] 13:22:08     INFO -                       'exception': {'type': 'error'},
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                       'lineNumber': 2,
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                       'stackTrace': {'callFrames': [{'columnNumber': 16,
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                      'functionName': '',
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                      'lineNumber': 2,
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                      'url': 'about:blank'},
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                     {'columnNumber': 15,
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                      'functionName': '',
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                      'lineNumber': 4,
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                                                      'url': 'about:blank'}]},
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                       'text': 'TypeError: can\'t access property "focus", elem '
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -                               'is null'},
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -  'realm': 'd5968363-e770-4a76-bb52-ae7cbf720d33',
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO -  'type': 'exception'}
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO - self       = <webdriver.bidi.modules.script.Script object at 0x000002AFF78102E0>
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO - 
[task 2023-06-10T13:22:08.459Z] 13:22:08     INFO - tests\web-platform\tests\tools\webdriver\webdriver\bidi\modules\script.py:152: ScriptEvaluateResultException
[task 2023-06-10T13:22:08.461Z] 13:22:08     INFO - ..
[task 2023-06-10T13:22:08.461Z] 13:22:08     INFO - TEST-OK | /webdriver/tests/bidi/input/release_actions/sequence.py | took 5838ms
Summary: Intermittent [tier 2] /webdriver/tests/bidi/input/release_actions/sequence.py | test_release_char_sequence_sends_keyup_events_in_reverse - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null → Intermittent [tier 2] Wd | <random> - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null

There is an overlapping navigation and we return already for about:blank. As such the element doesn't exist in the DOM:
https://treeherder.mozilla.org/logviewer?job_id=418823934&repo=try&lineNumber=7862-7897

A fix for bug 1837949 should help here.

Depends on: 1837949
Summary: Intermittent [tier 2] Wd | <random> - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null → Intermittent [Wd | <random> - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null
Summary: Intermittent [Wd | <random> - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null → Intermittent Wd | <random> - webdriver.bidi.modules.script.ScriptEvaluateResultException: TypeError: can't access property "focus", elem is null
Duplicate of this bug: 1837955

Basically this is based on the same underlying issue as bug 1830616.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1830616
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.