Intermittent /webdriver/tests/get_element_tag_name/get.py | test_no_browsing_context - AssertionError: assert 'no such element' == 'no such window'
Categories
(Remote Protocol :: Marionette, defect, P5)
Tracking
(Not tracked)
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: assertion, intermittent-failure)
Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=315965167&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OBWkybqaQb6oVuelR0GyBw/runs/0/artifacts/public/logs/live_backing.log
[task 2020-09-17T15:29:12.690Z] 15:29:12 INFO - STDOUT: PASSED
[task 2020-09-17T15:29:12.691Z] 15:29:12 INFO - PID 1601 | 1600356552686 Marionette DEBUG 0 <- [1,96,null,{"value":"input"}]
[task 2020-09-17T15:29:12.691Z] 15:29:12 INFO - PID 1601 | 1600356552687 webdriver::server DEBUG <- 200 OK {"value":"input"}
[task 2020-09-17T15:29:12.692Z] 15:29:12 INFO - PID 1601 | 1600356552688 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/timeouts {"implicit": 0}
[task 2020-09-17T15:29:12.693Z] 15:29:12 INFO - PID 1601 | 1600356552689 Marionette DEBUG 0 -> [0,97,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2020-09-17T15:29:12.693Z] 15:29:12 INFO - PID 1601 | 1600356552690 Marionette DEBUG 0 <- [1,97,null,{"value":null}]
[task 2020-09-17T15:29:12.694Z] 15:29:12 INFO - PID 1601 | 1600356552691 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.697Z] 15:29:12 INFO - PID 1601 | 1600356552693 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/timeouts {"pageLoad": 300000}
[task 2020-09-17T15:29:12.697Z] 15:29:12 INFO - PID 1601 | 1600356552694 Marionette DEBUG 0 -> [0,98,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2020-09-17T15:29:12.697Z] 15:29:12 INFO - PID 1601 | 1600356552695 Marionette DEBUG 0 <- [1,98,null,{"value":null}]
[task 2020-09-17T15:29:12.698Z] 15:29:12 INFO - PID 1601 | 1600356552696 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.699Z] 15:29:12 INFO - PID 1601 | 1600356552697 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/timeouts {"script": 30000}
[task 2020-09-17T15:29:12.701Z] 15:29:12 INFO - PID 1601 | 1600356552698 Marionette DEBUG 0 -> [0,99,"WebDriver:SetTimeouts",{"script":30000}]
[task 2020-09-17T15:29:12.702Z] 15:29:12 INFO - PID 1601 | 1600356552699 Marionette DEBUG 0 <- [1,99,null,{"value":null}]
[task 2020-09-17T15:29:12.702Z] 15:29:12 INFO - PID 1601 | 1600356552700 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.703Z] 15:29:12 INFO - PID 1601 | 1600356552701 webdriver::server DEBUG -> GET /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window
[task 2020-09-17T15:29:12.707Z] 15:29:12 INFO - PID 1601 | 1600356552703 Marionette DEBUG 0 -> [0,100,"WebDriver:GetWindowHandle",{}]
[task 2020-09-17T15:29:12.707Z] 15:29:12 INFO - PID 1601 | 1600356552704 Marionette DEBUG 0 <- [1,100,null,{"value":"17"}]
[task 2020-09-17T15:29:12.707Z] 15:29:12 INFO - PID 1601 | 1600356552705 webdriver::server DEBUG <- 200 OK {"value":"17"}
[task 2020-09-17T15:29:12.709Z] 15:29:12 INFO - PID 1601 | 1600356552706 webdriver::server DEBUG -> GET /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window
[task 2020-09-17T15:29:12.710Z] 15:29:12 INFO - PID 1601 | 1600356552709 Marionette DEBUG 0 -> [0,101,"WebDriver:GetWindowHandle",{}]
[task 2020-09-17T15:29:12.712Z] 15:29:12 INFO - PID 1601 | 1600356552710 Marionette DEBUG 0 <- [1,101,null,{"value":"17"}]
[task 2020-09-17T15:29:12.712Z] 15:29:12 INFO - PID 1601 | 1600356552710 webdriver::server DEBUG <- 200 OK {"value":"17"}
[task 2020-09-17T15:29:12.714Z] 15:29:12 INFO - PID 1601 | 1600356552711 webdriver::server DEBUG -> GET /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window/handles
[task 2020-09-17T15:29:12.718Z] 15:29:12 INFO - PID 1601 | 1600356552714 Marionette DEBUG 0 -> [0,102,"WebDriver:GetWindowHandles",{}]
[task 2020-09-17T15:29:12.719Z] 15:29:12 INFO - PID 1601 | 1600356552715 Marionette DEBUG 0 <- [1,102,null,["17"]]
[task 2020-09-17T15:29:12.719Z] 15:29:12 INFO - PID 1601 | 1600356552715 webdriver::server DEBUG <- 200 OK {"value":["17"]}
[task 2020-09-17T15:29:12.719Z] 15:29:12 INFO - PID 1601 | 1600356552716 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window {"handle": "17"}
[task 2020-09-17T15:29:12.720Z] 15:29:12 INFO - PID 1601 | 1600356552717 Marionette DEBUG 0 -> [0,103,"WebDriver:SwitchToWindow",{"handle":"17","name":"17"}]
[task 2020-09-17T15:29:12.723Z] 15:29:12 INFO - PID 1601 | 1600356552718 Marionette DEBUG 0 <- [1,103,null,{"value":null}]
[task 2020-09-17T15:29:12.723Z] 15:29:12 INFO - PID 1601 | 1600356552719 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.724Z] 15:29:12 INFO - PID 1601 | 1600356552720 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/alert/dismiss {}
[task 2020-09-17T15:29:12.725Z] 15:29:12 INFO - PID 1601 | 1600356552721 Marionette DEBUG 0 -> [0,104,"WebDriver:DismissAlert",{}]
[task 2020-09-17T15:29:12.726Z] 15:29:12 INFO - PID 1601 | 1600356552722 Marionette DEBUG 0 <- [1,104,{"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-09-17T15:29:12.726Z] 15:29:12 INFO - PID 1601 | 1600356552722 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:3398:11\nGeckoDriver.prototype.dismissDialog@chrome://marionette/content/driver.js:3301: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-09-17T15:29:12.728Z] 15:29:12 INFO - PID 1601 | 1600356552724 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window {"handle": "17"}
[task 2020-09-17T15:29:12.728Z] 15:29:12 INFO - PID 1601 | 1600356552725 Marionette DEBUG 0 -> [0,105,"WebDriver:SwitchToWindow",{"handle":"17","name":"17"}]
[task 2020-09-17T15:29:12.729Z] 15:29:12 INFO - PID 1601 | 1600356552726 Marionette DEBUG 0 <- [1,105,null,{"value":null}]
[task 2020-09-17T15:29:12.730Z] 15:29:12 INFO - PID 1601 | 1600356552726 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.730Z] 15:29:12 INFO - PID 1601 | 1600356552728 webdriver::server DEBUG -> GET /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window
[task 2020-09-17T15:29:12.731Z] 15:29:12 INFO - PID 1601 | 1600356552729 Marionette DEBUG 0 -> [0,106,"WebDriver:GetWindowHandle",{}]
[task 2020-09-17T15:29:12.732Z] 15:29:12 INFO - PID 1601 | 1600356552729 Marionette DEBUG 0 <- [1,106,null,{"value":"17"}]
[task 2020-09-17T15:29:12.733Z] 15:29:12 INFO - PID 1601 | 1600356552730 webdriver::server DEBUG <- 200 OK {"value":"17"}
[task 2020-09-17T15:29:12.734Z] 15:29:12 INFO - PID 1601 | 1600356552731 webdriver::server DEBUG -> GET /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window/handles
[task 2020-09-17T15:29:12.734Z] 15:29:12 INFO - PID 1601 | 1600356552732 Marionette DEBUG 0 -> [0,107,"WebDriver:GetWindowHandles",{}]
[task 2020-09-17T15:29:12.736Z] 15:29:12 INFO - PID 1601 | 1600356552733 Marionette DEBUG 0 <- [1,107,null,["17"]]
[task 2020-09-17T15:29:12.736Z] 15:29:12 INFO - PID 1601 | 1600356552733 webdriver::server DEBUG <- 200 OK {"value":["17"]}
[task 2020-09-17T15:29:12.736Z] 15:29:12 INFO - PID 1601 | 1600356552734 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window {"handle": "17"}
[task 2020-09-17T15:29:12.739Z] 15:29:12 INFO - PID 1601 | 1600356552735 Marionette DEBUG 0 -> [0,108,"WebDriver:SwitchToWindow",{"handle":"17","name":"17"}]
[task 2020-09-17T15:29:12.739Z] 15:29:12 INFO - PID 1601 | 1600356552736 Marionette DEBUG 0 <- [1,108,null,{"value":null}]
[task 2020-09-17T15:29:12.739Z] 15:29:12 INFO - PID 1601 | 1600356552736 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.740Z] 15:29:12 INFO - PID 1601 | 1600356552737 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/window/rect {"width": 800, "height": 600}
[task 2020-09-17T15:29:12.741Z] 15:29:12 INFO - PID 1601 | 1600356552738 Marionette DEBUG 0 -> [0,109,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2020-09-17T15:29:12.741Z] 15:29:12 INFO - PID 1601 | 1600356552740 Marionette DEBUG 0 <- [1,109,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2020-09-17T15:29:12.743Z] 15:29:12 INFO - PID 1601 | 1600356552740 webdriver::server DEBUG <- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2020-09-17T15:29:12.744Z] 15:29:12 INFO - PID 1601 | 1600356552741 webdriver::server DEBUG -> POST /session/99e9f94a-e7d4-4e52-a729-4f712fb30d43/frame {"id": null}
[task 2020-09-17T15:29:12.745Z] 15:29:12 INFO - PID 1601 | 1600356552742 Marionette DEBUG 0 -> [0,110,"WebDriver:SwitchToFrame",{"id":null}]
[task 2020-09-17T15:29:12.752Z] 15:29:12 INFO - STDOUT: =================================== FAILURES ===================================
[task 2020-09-17T15:29:12.753Z] 15:29:12 INFO - PID 1601 | 1600356552745 Marionette DEBUG 0 <- [1,110,null,{"value":null}]
[task 2020-09-17T15:29:12.753Z] 15:29:12 INFO - STDOUT: ___________________________ test_no_browsing_context ___________________________
[task 2020-09-17T15:29:12.753Z] 15:29:12 INFO - PID 1601 | 1600356552745 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2020-09-17T15:29:12.753Z] 15:29:12 INFO - STDOUT: session = <Session 99e9f94a-e7d4-4e52-a729-4f712fb30d43>, closed_frame = None
[task 2020-09-17T15:29:12.754Z] 15:29:12 INFO - STDOUT: def test_no_browsing_context(session, closed_frame):
[task 2020-09-17T15:29:12.754Z] 15:29:12 INFO - STDOUT: response = get_element_tag_name(session, "foo")
[task 2020-09-17T15:29:12.754Z] 15:29:12 INFO - STDOUT: > assert_error(response, "no such window")
[task 2020-09-17T15:29:12.754Z] 15:29:12 INFO - STDOUT: closed_frame = None
[task 2020-09-17T15:29:12.754Z] 15:29:12 INFO - STDOUT: response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2020-09-17T15:29:12.755Z] 15:29:12 INFO - STDOUT: session = <Session 99e9f94a-e7d4-4e52-a729-4f712fb30d43>
[task 2020-09-17T15:29:12.755Z] 15:29:12 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/get_element_tag_name/get.py
[task 2020-09-17T15:29:12.755Z] 15:29:12 INFO - STDOUT: :19:
[task 2020-09-17T15:29:12.755Z] 15:29:12 INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-09-17T15:29:12.756Z] 15:29:12 INFO - STDOUT: response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2020-09-17T15:29:12.756Z] 15:29:12 INFO - STDOUT: error_code = 'no such window'
[task 2020-09-17T15:29:12.756Z] 15:29:12 INFO - STDOUT: def assert_error(response, error_code):
[task 2020-09-17T15:29:12.756Z] 15:29:12 INFO - STDOUT: """
[task 2020-09-17T15:29:12.756Z] 15:29:12 INFO - STDOUT: Verify that the provided webdriver.Response instance described
[task 2020-09-17T15:29:12.756Z] 15:29:12 INFO - STDOUT: a valid error response as defined by dfn-send-an-error
and
[task 2020-09-17T15:29:12.757Z] 15:29:12 INFO - STDOUT: the provided error code.
[task 2020-09-17T15:29:12.757Z] 15:29:12 INFO - STDOUT:
[task 2020-09-17T15:29:12.757Z] 15:29:12 INFO - STDOUT: :param response: webdriver.Response
instance.
[task 2020-09-17T15:29:12.758Z] 15:29:12 INFO - STDOUT: :param error_code: String value of the expected error code
[task 2020-09-17T15:29:12.758Z] 15:29:12 INFO - STDOUT: """
[task 2020-09-17T15:29:12.759Z] 15:29:12 INFO - STDOUT: assert response.status == errors[error_code]
[task 2020-09-17T15:29:12.760Z] 15:29:12 INFO - STDOUT: assert "value" in response.body
[task 2020-09-17T15:29:12.760Z] 15:29:12 INFO - STDOUT: > assert response.body["value"]["error"] == error_code
[task 2020-09-17T15:29:12.760Z] 15:29:12 INFO - STDOUT: E AssertionError: assert 'no such element' == 'no such window'
[task 2020-09-17T15:29:12.761Z] 15:29:12 INFO - STDOUT: E - no such element
[task 2020-09-17T15:29:12.761Z] 15:29:12 INFO - STDOUT: E + no such window
[task 2020-09-17T15:29:12.761Z] 15:29:12 INFO - STDOUT: error_code = 'no such window'
[task 2020-09-17T15:29:12.761Z] 15:29:12 INFO - STDOUT: response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2020-09-17T15:29:12.762Z] 15:29:12 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/support/asserts.py
[task 2020-09-17T15:29:12.764Z] 15:29:12 INFO - STDOUT: :54: AssertionError
[task 2020-09-17T15:29:12.764Z] 15:29:12 INFO - STDOUT: ====================== 1 failed, 4 passed in 8.36 seconds ======================
[task 2020-09-17T15:29:12.780Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.780Z] 15:29:12 INFO - TEST-PASS | /webdriver/tests/get_element_tag_name/get.py | test_no_top_browsing_context
[task 2020-09-17T15:29:12.780Z] 15:29:12 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/get_element_tag_name/get.py | test_no_browsing_context - AssertionError: assert 'no such element' == 'no such window'
[task 2020-09-17T15:29:12.780Z] 15:29:12 INFO - session = <Session 99e9f94a-e7d4-4e52-a729-4f712fb30d43>, closed_frame = None
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO - def test_no_browsing_context(session, closed_frame):
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO - response = get_element_tag_name(session, "foo")
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO - > assert_error(response, "no such window")
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO - closed_frame = None
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO - response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO - session = <Session 99e9f94a-e7d4-4e52-a729-4f712fb30d43>
[task 2020-09-17T15:29:12.781Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - tests/web-platform/tests/webdriver/tests/get_element_tag_name/get.py:19:
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - error_code = 'no such window'
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - def assert_error(response, error_code):
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - """
[task 2020-09-17T15:29:12.782Z] 15:29:12 INFO - Verify that the provided webdriver.Response instance described
[task 2020-09-17T15:29:12.783Z] 15:29:12 INFO - a valid error response as defined by dfn-send-an-error
and
[task 2020-09-17T15:29:12.783Z] 15:29:12 INFO - the provided error code.
[task 2020-09-17T15:29:12.783Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.783Z] 15:29:12 INFO - :param response: webdriver.Response
instance.
[task 2020-09-17T15:29:12.783Z] 15:29:12 INFO - :param error_code: String value of the expected error code
[task 2020-09-17T15:29:12.783Z] 15:29:12 INFO - """
[task 2020-09-17T15:29:12.784Z] 15:29:12 INFO - assert response.status == errors[error_code]
[task 2020-09-17T15:29:12.784Z] 15:29:12 INFO - assert "value" in response.body
[task 2020-09-17T15:29:12.784Z] 15:29:12 INFO - > assert response.body["value"]["error"] == error_code
[task 2020-09-17T15:29:12.784Z] 15:29:12 INFO - E AssertionError: assert 'no such element' == 'no such window'
[task 2020-09-17T15:29:12.784Z] 15:29:12 INFO - E - no such element
[task 2020-09-17T15:29:12.785Z] 15:29:12 INFO - E + no such window
[task 2020-09-17T15:29:12.785Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.785Z] 15:29:12 INFO - error_code = 'no such window'
[task 2020-09-17T15:29:12.785Z] 15:29:12 INFO - response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2020-09-17T15:29:12.785Z] 15:29:12 INFO -
[task 2020-09-17T15:29:12.785Z] 15:29:12 INFO - tests/web-platform/tests/webdriver/tests/support/asserts.py:54: AssertionError
[task 2020-09-17T15:29:12.786Z] 15:29:12 INFO - ...
[task 2020-09-17T15:29:12.786Z] 15:29:12 INFO - TEST-OK | /webdriver/tests/get_element_tag_name/get.py | took 8623ms
[task 2020-09-17T15:29:12.842Z] 15:29:12 INFO - Closing logging queue
[task 2020-09-17T15:29:12.842Z] 15:29:12 INFO - queue closed
[task 2020-09-17T15:29:12.843Z] 15:29:12 INFO - Starting runner
[task 2020-09-17T15:29:12.861Z] 15:29:12 INFO - PID 2042 | 1600356552857 geckodriver INFO Listening on 127.0.0.1:40670
[task 2020-09-17T15:29:12.861Z] 15:29:12 INFO - WebDriver HTTP server listening at http://127.0.0.1:40670/
[task 2020-09-17T15:29:12.862Z] 15:29:12 INFO - TEST-START | /webdriver/tests/get_element_tag_name/user_prompts.py
Updated•4 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 4•2 years ago
|
||
Description
•