Closed Bug 1677975 Opened 4 years ago Closed 3 years ago

Intermittent /webdriver/tests/refresh/refresh.py | test_refresh_switches_to_parent_browsing_context - NoSuchWindowException: no such window (404): Browsing context has been discarded

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(firefox87 fixed)

RESOLVED FIXED
Tracking Status
firefox87 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: whimboo)

References

Details

(Keywords: intermittent-failure)

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


[task 2020-11-18T09:38:38.688Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/refresh/refresh.py::test_refresh_switches_to_parent_browsing_context 
[task 2020-11-18T09:38:38.688Z] 09:38:38     INFO - PID 13784 | 1605692318684	Marionette	DEBUG	0 <- [1,150,null,{"value":null}]
[task 2020-11-18T09:38:38.689Z] 09:38:38     INFO - PID 13784 | 1605692318684	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.690Z] 09:38:38     INFO - PID 13784 | 1605692318686	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window/rect {"width": 800, "height": 600}
[task 2020-11-18T09:38:38.690Z] 09:38:38     INFO - PID 13784 | 1605692318687	Marionette	DEBUG	0 -> [0,151,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2020-11-18T09:38:38.692Z] 09:38:38     INFO - PID 13784 | 1605692318689	Marionette	DEBUG	0 <- [1,151,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2020-11-18T09:38:38.692Z] 09:38:38     INFO - PID 13784 | 1605692318689	webdriver::server	DEBUG	<- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2020-11-18T09:38:38.692Z] 09:38:38     INFO - PID 13784 | 1605692318691	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window/rect {"y": 100, "x": 100}
[task 2020-11-18T09:38:38.694Z] 09:38:38     INFO - PID 13784 | 1605692318691	Marionette	DEBUG	0 -> [0,152,"WebDriver:SetWindowRect",{"x":100,"y":100}]
[task 2020-11-18T09:38:38.700Z] 09:38:38     INFO - PID 13784 | 1605692318693	Marionette	DEBUG	0 <- [1,152,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2020-11-18T09:38:38.701Z] 09:38:38     INFO - PID 13784 | 1605692318693	webdriver::server	DEBUG	<- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2020-11-18T09:38:38.701Z] 09:38:38     INFO - PID 13784 | 1605692318695	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/url {"url": "http://web-platform.test:8000/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3Dfoo%3E&charset=UTF-8&mime=text%2Fhtml"}
[task 2020-11-18T09:38:38.701Z] 09:38:38     INFO - PID 13784 | 1605692318695	Marionette	DEBUG	0 -> [0,153,"WebDriver:Navigate",{"url":"http://web-platform.test:8000/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3Dfoo%3E&charset=UTF-8&mime=text%2Fhtml"}]
[task 2020-11-18T09:38:38.703Z] 09:38:38     INFO - PID 13784 | 1605692318699	Marionette	TRACE	[17] MarionetteEvents actor created for window id 2147483657
[task 2020-11-18T09:38:38.704Z] 09:38:38     INFO - PID 13784 | 1605692318702	Marionette	TRACE	Received event beforeunload for http://web-platform.test:8000/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A+ ... A++++++%3Ca+onclick%3D%22javascript%3ApushState%28%29%3B%22%3Eclick%3C%2Fa%3E%0A++++&charset=UTF-8&mime=text%2Fhtml#pushstate
[task 2020-11-18T09:38:38.720Z] 09:38:38     INFO - PID 13784 | 1605692318712	Marionette	TRACE	Received event pagehide for http://web-platform.test:8000/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A+ ... A++++++%3Ca+onclick%3D%22javascript%3ApushState%28%29%3B%22%3Eclick%3C%2Fa%3E%0A++++&charset=UTF-8&mime=text%2Fhtml#pushstate
[task 2020-11-18T09:38:38.736Z] 09:38:38     INFO - PID 13784 | 1605692318728	Marionette	TRACE	[17] MarionetteEvents actor created for window id 2147483658
[task 2020-11-18T09:38:38.754Z] 09:38:38     INFO - PID 13784 | 1605692318742	Marionette	TRACE	Received event DOMContentLoaded for http://web-platform.test:8000/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3Dfoo%3E&charset=UTF-8&mime=text%2Fhtml
[task 2020-11-18T09:38:38.755Z] 09:38:38     INFO - PID 13784 | 1605692318744	Marionette	TRACE	Received event pageshow for http://web-platform.test:8000/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3Dfoo%3E&charset=UTF-8&mime=text%2Fhtml
[task 2020-11-18T09:38:38.756Z] 09:38:38     INFO - PID 13784 | 1605692318745	Marionette	DEBUG	0 <- [1,153,null,{"value":null}]
[task 2020-11-18T09:38:38.760Z] 09:38:38     INFO - PID 13784 | 1605692318753	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.760Z] 09:38:38     INFO - PID 13784 | 1605692318755	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/execute/sync {"args": [], "script": "\n            var frame = document.createElement('iframe');\n            document.body.appendChild(frame);\n            return frame;\n        "}
[task 2020-11-18T09:38:38.760Z] 09:38:38     INFO - PID 13784 | 1605692318758	Marionette	DEBUG	0 -> [0,154,"WebDriver:ExecuteScript",{"args":[],"script":"\n            var frame = document.createElement('iframe');\n            document.body.appendChild(frame);\n            return frame;\n        "}]
[task 2020-11-18T09:38:38.764Z] 09:38:38     INFO - PID 13784 | 1605692318759	Marionette	TRACE	[17] MarionetteCommands actor created for window id 2147483658
[task 2020-11-18T09:38:38.780Z] 09:38:38     INFO - PID 13784 | 1605692318770	Marionette	DEBUG	0 <- [1,154,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"ab67072c-6149-4c58-a374-75baa426dd83"}}]
[task 2020-11-18T09:38:38.780Z] 09:38:38     INFO - PID 13784 | 1605692318772	webdriver::server	DEBUG	<- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"ab67072c-6149-4c58-a374-75baa426dd83"}}
[task 2020-11-18T09:38:38.781Z] 09:38:38     INFO - PID 13784 | 1605692318773	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/frame {"id": {"element-6066-11e4-a52e-4f735466cecf": "ab67072c-6149-4c58-a374-75baa426dd83"}}
[task 2020-11-18T09:38:38.781Z] 09:38:38     INFO - PID 13784 | 1605692318774	Marionette	DEBUG	0 -> [0,155,"WebDriver:SwitchToFrame",{"element":"ab67072c-6149-4c58-a374-75baa426dd83"}]
[task 2020-11-18T09:38:38.782Z] 09:38:38     INFO - PID 13784 | 1605692318779	Marionette	DEBUG	0 <- [1,155,null,{"value":null}]
[task 2020-11-18T09:38:38.783Z] 09:38:38     INFO - PID 13784 | 1605692318779	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.784Z] 09:38:38     INFO - PID 13784 | 1605692318781	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/element {"using": "css selector", "value": "#foo"}
[task 2020-11-18T09:38:38.788Z] 09:38:38     INFO - PID 13784 | 1605692318782	Marionette	DEBUG	0 -> [0,156,"WebDriver:FindElement",{"using":"css selector","value":"#foo"}]
[task 2020-11-18T09:38:38.789Z] 09:38:38     INFO - PID 13784 | 1605692318784	Marionette	DEBUG	0 <- [1,156,{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://marion ... t@chrome://marionette/content/server.js:241:9\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20\n"},null]
[task 2020-11-18T09:38:38.789Z] 09:38:38     INFO - PID 13784 | 1605692318784	webdriver::server	DEBUG	<- 404 Not Found {"value":{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://marionette/content/error.js:181:5\nNoSuchWindowError@chrome://marionette/content/error.js:415:5\nassert.that/<@chrome://marionette/content/assert.js:460:13\nassert.open@chrome://marionette/content/assert.js:168:4\nGeckoDriver.prototype.findElement@chrome://marionette/content/driver.js:2051:10\ndespatch@chrome://marionette/content/server.js:297:40\nexecute@chrome://marionette/content/server.js:267:16\nonPacket/<@chrome://marionette/content/server.js:240:20\nonPacket@chrome://marionette/content/server.js:241:9\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20\n"}}
[task 2020-11-18T09:38:38.870Z] 09:38:38     INFO - STDOUT: FAILED
[task 2020-11-18T09:38:38.870Z] 09:38:38     INFO - PID 13784 | 1605692318867	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/timeouts {"implicit": 0}
[task 2020-11-18T09:38:38.872Z] 09:38:38     INFO - PID 13784 | 1605692318868	Marionette	DEBUG	0 -> [0,157,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2020-11-18T09:38:38.873Z] 09:38:38     INFO - PID 13784 | 1605692318868	Marionette	DEBUG	0 <- [1,157,null,{"value":null}]
[task 2020-11-18T09:38:38.873Z] 09:38:38     INFO - PID 13784 | 1605692318869	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.873Z] 09:38:38     INFO - PID 13784 | 1605692318869	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/timeouts {"pageLoad": 300000}
[task 2020-11-18T09:38:38.874Z] 09:38:38     INFO - PID 13784 | 1605692318871	Marionette	DEBUG	0 -> [0,158,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2020-11-18T09:38:38.875Z] 09:38:38     INFO - PID 13784 | 1605692318871	Marionette	DEBUG	0 <- [1,158,null,{"value":null}]
[task 2020-11-18T09:38:38.875Z] 09:38:38     INFO - PID 13784 | 1605692318872	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.877Z] 09:38:38     INFO - PID 13784 | 1605692318873	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/timeouts {"script": 30000}
[task 2020-11-18T09:38:38.877Z] 09:38:38     INFO - PID 13784 | 1605692318874	Marionette	DEBUG	0 -> [0,159,"WebDriver:SetTimeouts",{"script":30000}]
[task 2020-11-18T09:38:38.878Z] 09:38:38     INFO - PID 13784 | 1605692318874	Marionette	DEBUG	0 <- [1,159,null,{"value":null}]
[task 2020-11-18T09:38:38.879Z] 09:38:38     INFO - PID 13784 | 1605692318875	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.879Z] 09:38:38     INFO - PID 13784 | 1605692318876	webdriver::server	DEBUG	-> GET /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window
[task 2020-11-18T09:38:38.879Z] 09:38:38     INFO - PID 13784 | 1605692318877	Marionette	DEBUG	0 -> [0,160,"WebDriver:GetWindowHandle",{}]
[task 2020-11-18T09:38:38.881Z] 09:38:38     INFO - PID 13784 | 1605692318877	Marionette	DEBUG	0 <- [1,160,null,{"value":"17"}]
[task 2020-11-18T09:38:38.881Z] 09:38:38     INFO - PID 13784 | 1605692318878	webdriver::server	DEBUG	<- 200 OK {"value":"17"}
[task 2020-11-18T09:38:38.881Z] 09:38:38     INFO - PID 13784 | 1605692318879	webdriver::server	DEBUG	-> GET /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window
[task 2020-11-18T09:38:38.882Z] 09:38:38     INFO - PID 13784 | 1605692318879	Marionette	DEBUG	0 -> [0,161,"WebDriver:GetWindowHandle",{}]
[task 2020-11-18T09:38:38.883Z] 09:38:38     INFO - PID 13784 | 1605692318880	Marionette	DEBUG	0 <- [1,161,null,{"value":"17"}]
[task 2020-11-18T09:38:38.884Z] 09:38:38     INFO - PID 13784 | 1605692318881	webdriver::server	DEBUG	<- 200 OK {"value":"17"}
[task 2020-11-18T09:38:38.884Z] 09:38:38     INFO - PID 13784 | 1605692318882	webdriver::server	DEBUG	-> GET /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window/handles
[task 2020-11-18T09:38:38.886Z] 09:38:38     INFO - PID 13784 | 1605692318882	Marionette	DEBUG	0 -> [0,162,"WebDriver:GetWindowHandles",{}]
[task 2020-11-18T09:38:38.886Z] 09:38:38     INFO - PID 13784 | 1605692318883	Marionette	DEBUG	0 <- [1,162,null,["17"]]
[task 2020-11-18T09:38:38.886Z] 09:38:38     INFO - PID 13784 | 1605692318883	webdriver::server	DEBUG	<- 200 OK {"value":["17"]}
[task 2020-11-18T09:38:38.889Z] 09:38:38     INFO - PID 13784 | 1605692318885	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window {"handle": "17"}
[task 2020-11-18T09:38:38.889Z] 09:38:38     INFO - PID 13784 | 1605692318885	Marionette	DEBUG	0 -> [0,163,"WebDriver:SwitchToWindow",{"handle":"17","name":"17"}]
[task 2020-11-18T09:38:38.890Z] 09:38:38     INFO - PID 13784 | 1605692318886	Marionette	DEBUG	0 <- [1,163,null,{"value":null}]
[task 2020-11-18T09:38:38.890Z] 09:38:38     INFO - PID 13784 | 1605692318886	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.892Z] 09:38:38     INFO - PID 13784 | 1605692318887	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/alert/dismiss {}
[task 2020-11-18T09:38:38.893Z] 09:38:38     INFO - PID 13784 | 1605692318888	Marionette	DEBUG	0 -> [0,164,"WebDriver:DismissAlert",{}]
[task 2020-11-18T09:38:38.894Z] 09:38:38     INFO - PID 13784 | 1605692318888	Marionette	DEBUG	0 <- [1,164,{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://marionette/content/error.js:181:5\nNoSuchA ... t@chrome://marionette/content/server.js:241:9\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20\n"},null]
[task 2020-11-18T09:38:38.895Z] 09:38:38     INFO - PID 13784 | 1605692318889	webdriver::server	DEBUG	<- 404 Not Found {"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://marionette/content/error.js:181:5\nNoSuchAlertError@chrome://marionette/content/error.js:382:5\nGeckoDriver.prototype._checkIfAlertIsPresent@chrome://marionette/content/driver.js:3459:11\nGeckoDriver.prototype.dismissDialog@chrome://marionette/content/driver.js:3362:8\ndespatch@chrome://marionette/content/server.js:297:40\nexecute@chrome://marionette/content/server.js:267:16\nonPacket/<@chrome://marionette/content/server.js:240:20\nonPacket@chrome://marionette/content/server.js:241:9\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20\n"}}
[task 2020-11-18T09:38:38.896Z] 09:38:38     INFO - PID 13784 | 1605692318889	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window {"handle": "17"}
[task 2020-11-18T09:38:38.896Z] 09:38:38     INFO - PID 13784 | 1605692318890	Marionette	DEBUG	0 -> [0,165,"WebDriver:SwitchToWindow",{"handle":"17","name":"17"}]
[task 2020-11-18T09:38:38.898Z] 09:38:38     INFO - PID 13784 | 1605692318890	Marionette	DEBUG	0 <- [1,165,null,{"value":null}]
[task 2020-11-18T09:38:38.898Z] 09:38:38     INFO - PID 13784 | 1605692318891	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.899Z] 09:38:38     INFO - PID 13784 | 1605692318892	webdriver::server	DEBUG	-> GET /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window
[task 2020-11-18T09:38:38.900Z] 09:38:38     INFO - PID 13784 | 1605692318892	Marionette	DEBUG	0 -> [0,166,"WebDriver:GetWindowHandle",{}]
[task 2020-11-18T09:38:38.900Z] 09:38:38     INFO - PID 13784 | 1605692318893	Marionette	DEBUG	0 <- [1,166,null,{"value":"17"}]
[task 2020-11-18T09:38:38.901Z] 09:38:38     INFO - PID 13784 | 1605692318893	webdriver::server	DEBUG	<- 200 OK {"value":"17"}
[task 2020-11-18T09:38:38.902Z] 09:38:38     INFO - PID 13784 | 1605692318894	webdriver::server	DEBUG	-> GET /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window/handles
[task 2020-11-18T09:38:38.903Z] 09:38:38     INFO - PID 13784 | 1605692318895	Marionette	DEBUG	0 -> [0,167,"WebDriver:GetWindowHandles",{}]
[task 2020-11-18T09:38:38.904Z] 09:38:38     INFO - PID 13784 | 1605692318896	Marionette	DEBUG	0 <- [1,167,null,["17"]]
[task 2020-11-18T09:38:38.904Z] 09:38:38     INFO - PID 13784 | 1605692318896	webdriver::server	DEBUG	<- 200 OK {"value":["17"]}
[task 2020-11-18T09:38:38.905Z] 09:38:38     INFO - PID 13784 | 1605692318897	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window {"handle": "17"}
[task 2020-11-18T09:38:38.905Z] 09:38:38     INFO - PID 13784 | 1605692318897	Marionette	DEBUG	0 -> [0,168,"WebDriver:SwitchToWindow",{"handle":"17","name":"17"}]
[task 2020-11-18T09:38:38.905Z] 09:38:38     INFO - PID 13784 | 1605692318898	Marionette	DEBUG	0 <- [1,168,null,{"value":null}]
[task 2020-11-18T09:38:38.907Z] 09:38:38     INFO - PID 13784 | 1605692318898	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.907Z] 09:38:38     INFO - PID 13784 | 1605692318899	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/window/rect {"width": 800, "height": 600}
[task 2020-11-18T09:38:38.907Z] 09:38:38     INFO - PID 13784 | 1605692318900	Marionette	DEBUG	0 -> [0,169,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2020-11-18T09:38:38.909Z] 09:38:38     INFO - PID 13784 | 1605692318901	Marionette	DEBUG	0 <- [1,169,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2020-11-18T09:38:38.909Z] 09:38:38     INFO - PID 13784 | 1605692318901	webdriver::server	DEBUG	<- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2020-11-18T09:38:38.909Z] 09:38:38     INFO - PID 13784 | 1605692318903	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/frame {"id": null}
[task 2020-11-18T09:38:38.910Z] 09:38:38     INFO - PID 13784 | 1605692318904	Marionette	DEBUG	0 -> [0,170,"WebDriver:SwitchToFrame",{"id":null}]
[task 2020-11-18T09:38:38.911Z] 09:38:38     INFO - PID 13784 | 1605692318907	Marionette	DEBUG	0 <- [1,170,null,{"value":null}]
[task 2020-11-18T09:38:38.919Z] 09:38:38     INFO - PID 13784 | 1605692318907	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.919Z] 09:38:38     INFO - STDOUT: =================================== FAILURES ===================================
[task 2020-11-18T09:38:38.920Z] 09:38:38     INFO - STDOUT: _______________ test_refresh_switches_to_parent_browsing_context _______________
[task 2020-11-18T09:38:38.920Z] 09:38:38     INFO - STDOUT: session = <Session 6470b633-e0f4-4531-ae4d-3b8f6570879c>
[task 2020-11-18T09:38:38.920Z] 09:38:38     INFO - STDOUT: create_frame = <function create_frame at 0x7fc9bbfd8cd0>
[task 2020-11-18T09:38:38.921Z] 09:38:38     INFO - STDOUT:     def test_refresh_switches_to_parent_browsing_context(session, create_frame):
[task 2020-11-18T09:38:38.921Z] 09:38:38     INFO - STDOUT:         session.url = inline("<div id=foo>")
[task 2020-11-18T09:38:38.921Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.922Z] 09:38:38     INFO - STDOUT:         session.switch_frame(create_frame())
[task 2020-11-18T09:38:38.922Z] 09:38:38     INFO - STDOUT:         with pytest.raises(NoSuchElementException):
[task 2020-11-18T09:38:38.922Z] 09:38:38     INFO - STDOUT: >           session.find.css("#foo", all=False)
[task 2020-11-18T09:38:38.923Z] 09:38:38     INFO - STDOUT: create_frame = <function create_frame at 0x7fc9bbfd8cd0>
[task 2020-11-18T09:38:38.923Z] 09:38:38     INFO - STDOUT: session    = <Session 6470b633-e0f4-4531-ae4d-3b8f6570879c>
[task 2020-11-18T09:38:38.923Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/refresh/refresh.py
[task 2020-11-18T09:38:38.924Z] 09:38:38     INFO - STDOUT: :119: 
[task 2020-11-18T09:38:38.924Z] 09:38:38     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2020-11-18T09:38:38.924Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-11-18T09:38:38.924Z] 09:38:38     INFO - STDOUT: :19: in inner
[task 2020-11-18T09:38:38.924Z] 09:38:38     INFO - STDOUT:     return func(self, *args, **kwargs)
[task 2020-11-18T09:38:38.925Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-11-18T09:38:38.925Z] 09:38:38     INFO - STDOUT: :381: in css
[task 2020-11-18T09:38:38.925Z] 09:38:38     INFO - STDOUT:     elements = self._find_element("css selector", element_selector, all)
[task 2020-11-18T09:38:38.925Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-11-18T09:38:38.925Z] 09:38:38     INFO - STDOUT: :388: in _find_element
[task 2020-11-18T09:38:38.925Z] 09:38:38     INFO - STDOUT:     return self.session.send_session_command("POST", route, body)
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT: :580: in send_session_command
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT:     return self.send_command(method, url, body, timeout)
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT: self = <Session 6470b633-e0f4-4531-ae4d-3b8f6570879c>, method = 'POST'
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT: url = 'session/6470b633-e0f4-4531-ae4d-3b8f6570879c/element'
[task 2020-11-18T09:38:38.926Z] 09:38:38     INFO - STDOUT: body = {'using': 'css selector', 'value': '#foo'}, timeout = None
[task 2020-11-18T09:38:38.927Z] 09:38:38     INFO - STDOUT:     def send_command(self, method, url, body=None, timeout=None):
[task 2020-11-18T09:38:38.927Z] 09:38:38     INFO - STDOUT:         """
[task 2020-11-18T09:38:38.927Z] 09:38:38     INFO - STDOUT:             Send a command to the remote end and validate its success.
[task 2020-11-18T09:38:38.927Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.927Z] 09:38:38     INFO - STDOUT:             :param method: HTTP method to use in request.
[task 2020-11-18T09:38:38.929Z] 09:38:38     INFO - STDOUT:             :param uri: "Command part" of the HTTP request URL,
[task 2020-11-18T09:38:38.929Z] 09:38:38     INFO - STDOUT:                 e.g. `window/rect`.
[task 2020-11-18T09:38:38.929Z] 09:38:38     INFO - STDOUT:             :param body: Optional body of the HTTP request.
[task 2020-11-18T09:38:38.930Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.931Z] 09:38:38     INFO - STDOUT:             :return: `None` if the HTTP response body was empty, otherwise
[task 2020-11-18T09:38:38.932Z] 09:38:38     INFO - STDOUT:                 the `value` field returned after parsing the response
[task 2020-11-18T09:38:38.933Z] 09:38:38     INFO - STDOUT:                 body as JSON.
[task 2020-11-18T09:38:38.933Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.934Z] 09:38:38     INFO - STDOUT:             :raises error.WebDriverException: If the remote end returns
[task 2020-11-18T09:38:38.934Z] 09:38:38     INFO - STDOUT:                 an error.
[task 2020-11-18T09:38:38.934Z] 09:38:38     INFO - STDOUT:             :raises ValueError: If the response body does not contain a
[task 2020-11-18T09:38:38.936Z] 09:38:38     INFO - STDOUT:                 `value` key.
[task 2020-11-18T09:38:38.936Z] 09:38:38     INFO - STDOUT:             """
[task 2020-11-18T09:38:38.936Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.937Z] 09:38:38     INFO - STDOUT:         response = self.transport.send(
[task 2020-11-18T09:38:38.937Z] 09:38:38     INFO - STDOUT:             method, url, body,
[task 2020-11-18T09:38:38.937Z] 09:38:38     INFO - STDOUT:             encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2020-11-18T09:38:38.939Z] 09:38:38     INFO - STDOUT:             session=self, timeout=timeout)
[task 2020-11-18T09:38:38.939Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.939Z] 09:38:38     INFO - STDOUT:         if response.status != 200:
[task 2020-11-18T09:38:38.940Z] 09:38:38     INFO - STDOUT:             err = error.from_response(response)
[task 2020-11-18T09:38:38.940Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.940Z] 09:38:38     INFO - STDOUT:             if isinstance(err, error.InvalidSessionIdException):
[task 2020-11-18T09:38:38.942Z] 09:38:38     INFO - STDOUT:                 # The driver could have already been deleted the session.
[task 2020-11-18T09:38:38.942Z] 09:38:38     INFO - STDOUT:                 self.session_id = None
[task 2020-11-18T09:38:38.942Z] 09:38:38     INFO - STDOUT:     
[task 2020-11-18T09:38:38.943Z] 09:38:38     INFO - STDOUT: >           raise err
[task 2020-11-18T09:38:38.943Z] 09:38:38     INFO - STDOUT: E           NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2020-11-18T09:38:38.966Z] 09:38:38     INFO - STDOUT: E           
[task 2020-11-18T09:38:38.967Z] 09:38:38     INFO - STDOUT: E           Remote-end stacktrace:
[task 2020-11-18T09:38:38.967Z] 09:38:38     INFO - STDOUT: E           
[task 2020-11-18T09:38:38.967Z] 09:38:38     INFO - STDOUT: E           WebDriverError@chrome://marionette/content/error.js:181:5
[task 2020-11-18T09:38:38.968Z] 09:38:38     INFO - STDOUT: E           NoSuchWindowError@chrome://marionette/content/error.js:415:5
[task 2020-11-18T09:38:38.968Z] 09:38:38     INFO - STDOUT: E           assert.that/<@chrome://marionette/content/assert.js:460:13
[task 2020-11-18T09:38:38.968Z] 09:38:38     INFO - STDOUT: E           assert.open@chrome://marionette/content/assert.js:168:4
[task 2020-11-18T09:38:38.969Z] 09:38:38     INFO - STDOUT: E           GeckoDriver.prototype.findElement@chrome://marionette/content/driver.js:2051:10
[task 2020-11-18T09:38:38.970Z] 09:38:38     INFO - STDOUT: E           despatch@chrome://marionette/content/server.js:297:40
[task 2020-11-18T09:38:38.970Z] 09:38:38     INFO - STDOUT: E           execute@chrome://marionette/content/server.js:267:16
[task 2020-11-18T09:38:38.970Z] 09:38:38     INFO - STDOUT: E           onPacket/<@chrome://marionette/content/server.js:240:20
[task 2020-11-18T09:38:38.970Z] 09:38:38     INFO - STDOUT: E           onPacket@chrome://marionette/content/server.js:241:9
[task 2020-11-18T09:38:38.970Z] 09:38:38     INFO - STDOUT: E           _onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20
[task 2020-11-18T09:38:38.970Z] 09:38:38     INFO - STDOUT: body       = {'using': 'css selector', 'value': '#foo'}
[task 2020-11-18T09:38:38.972Z] 09:38:38     INFO - STDOUT: err        = <NoSuchWindowException http_status=404>
[task 2020-11-18T09:38:38.972Z] 09:38:38     INFO - STDOUT: method     = 'POST'
[task 2020-11-18T09:38:38.972Z] 09:38:38     INFO - STDOUT: response   = <Response status=404 error=<NoSuchWindowException http_status=404>>
[task 2020-11-18T09:38:38.973Z] 09:38:38     INFO - STDOUT: self       = <Session 6470b633-e0f4-4531-ae4d-3b8f6570879c>
[task 2020-11-18T09:38:38.973Z] 09:38:38     INFO - STDOUT: timeout    = None
[task 2020-11-18T09:38:38.974Z] 09:38:38     INFO - STDOUT: url        = 'session/6470b633-e0f4-4531-ae4d-3b8f6570879c/element'
[task 2020-11-18T09:38:38.974Z] 09:38:38     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-11-18T09:38:38.975Z] 09:38:38     INFO - STDOUT: :544: NoSuchWindowException
[task 2020-11-18T09:38:38.975Z] 09:38:38     INFO - STDOUT: ====================== 1 failed, 6 passed in 8.93 seconds ======================
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-PASS | /webdriver/tests/refresh/refresh.py | test_null_response_value 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-PASS | /webdriver/tests/refresh/refresh.py | test_no_top_browsing_context 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-PASS | /webdriver/tests/refresh/refresh.py | test_no_browsing_context 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-PASS | /webdriver/tests/refresh/refresh.py | test_basic 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-PASS | /webdriver/tests/refresh/refresh.py | test_dismissed_beforeunload 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-PASS | /webdriver/tests/refresh/refresh.py | test_history_pushstate 
[task 2020-11-18T09:38:38.980Z] 09:38:38     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/refresh/refresh.py | test_refresh_switches_to_parent_browsing_context - NoSuchWindowException: no such window (404): Browsing context has been discarded```

Somehow the current window seems to have been disappeared:

[task 2020-11-18T09:38:38.781Z] 09:38:38     INFO - PID 13784 | 1605692318774	Marionette	DEBUG	0 -> [0,155,"WebDriver:SwitchToFrame",{"element":"ab67072c-6149-4c58-a374-75baa426dd83"}]
[task 2020-11-18T09:38:38.782Z] 09:38:38     INFO - PID 13784 | 1605692318779	Marionette	DEBUG	0 <- [1,155,null,{"value":null}]
[task 2020-11-18T09:38:38.783Z] 09:38:38     INFO - PID 13784 | 1605692318779	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-11-18T09:38:38.784Z] 09:38:38     INFO - PID 13784 | 1605692318781	webdriver::server	DEBUG	-> POST /session/6470b633-e0f4-4531-ae4d-3b8f6570879c/element {"using": "css selector", "value": "#foo"}
[task 2020-11-18T09:38:38.788Z] 09:38:38     INFO - PID 13784 | 1605692318782	Marionette	DEBUG	0 -> [0,156,"WebDriver:FindElement",{"using":"css selector","value":"#foo"}]
[task 2020-11-18T09:38:38.789Z] 09:38:38     INFO - PID 13784 | 1605692318784	Marionette	DEBUG	0 <- [1,156,{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://marion ... t@chrome://marionette/content/server.js:241:9\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20\n"},null]

In the case above we would have expected a NoSuchElement error. Not sure why the browsing context has been discarded at this time. Maybe something hasn't been correctly set for the new browsing context? Lets see how often this failure happens.

Summary: Intermittent [tier2] /webdriver/tests/refresh/refresh.py | test_refresh_switches_to_parent_browsing_context - NoSuchWindowException: no such window (404): Browsing context has been discarded → Intermittent /webdriver/tests/refresh/refresh.py | test_refresh_switches_to_parent_browsing_context - NoSuchWindowException: no such window (404): Browsing context has been discarded

Lets check back later this week, if the patch on bug 1691348 might have also helped for this test.

Depends on: 1691348

No more failures since bug 1691348 has been fixed.

Assignee: nobody → hskupin
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.