Closed Bug 1769447 Opened 3 years ago Closed 3 years ago

Intermittent /webdriver/tests/get_element_shadow_root/get.py | test_no_browsing_context - AssertionError: assert 'no such element' == 'no such window'

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(firefox-esr91 unaffected, firefox100 unaffected, firefox101 unaffected, firefox102 fixed)

RESOLVED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 --- unaffected
firefox101 --- unaffected
firefox102 --- fixed

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

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


[task 2022-05-13T16:57:36.539Z] 16:57:36     INFO - TEST-START | /webdriver/tests/get_element_shadow_root/get.py
[task 2022-05-13T16:57:36.815Z] 16:57:36     INFO - STDOUT: ============================= test session starts ==============================
[task 2022-05-13T16:57:36.817Z] 16:57:36     INFO - STDOUT: platform linux -- Python 3.6.9, pytest-6.1.1, py-1.5.2, pluggy-unknown -- /builds/worker/workspace/build/venv/bin/python
[task 2022-05-13T16:57:36.820Z] 16:57:36     INFO - STDOUT: rootdir: /builds/worker/workspace/build
[task 2022-05-13T16:57:36.821Z] 16:57:36     INFO - STDOUT: plugins: asyncio-0.14.0
[task 2022-05-13T16:57:36.822Z] 16:57:36     INFO - STDOUT: collecting ... 
[task 2022-05-13T16:57:36.834Z] 16:57:36     INFO - STDOUT: collected 6 items
[task 2022-05-13T16:57:36.837Z] 16:57:36     INFO - PID 18292 | 1652461056833	webdriver::server	DEBUG	-> POST /session {"capabilities": {"alwaysMatch": {"moz:firefoxOptions": {"args": ["--profile", "/tmp/tmpc4jk89ro.mozrunner"], "binary": "/builds/worker/workspace/build/application/firefox/firefox"}}}}
[task 2022-05-13T16:57:36.837Z] 16:57:36     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/get_element_shadow_root/get.py::test_no_top_browsing_context 

[task 2022-05-13T16:57:43.048Z] 16:57:43     INFO - PID 18292 | 1652461063047	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2022-05-13T16:57:43.049Z] 16:57:43     INFO - STDOUT: =================================== FAILURES ===================================
[task 2022-05-13T16:57:43.051Z] 16:57:43     INFO - STDOUT: ___________________________ test_no_browsing_context ___________________________
[task 2022-05-13T16:57:43.053Z] 16:57:43     INFO - STDOUT: session = <Session 0e789237-928f-4ab6-97ae-5b0b6ad4c39c>, closed_frame = None
[task 2022-05-13T16:57:43.055Z] 16:57:43     INFO - STDOUT:     def test_no_browsing_context(session, closed_frame):
[task 2022-05-13T16:57:43.057Z] 16:57:43     INFO - STDOUT:         response = get_shadow_root(session, "foo")
[task 2022-05-13T16:57:43.057Z] 16:57:43     INFO - STDOUT: >       assert_error(response, "no such window")
[task 2022-05-13T16:57:43.060Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.061Z] 16:57:43     INFO - TEST-PASS | /webdriver/tests/get_element_shadow_root/get.py | test_no_top_browsing_context 
[task 2022-05-13T16:57:43.061Z] 16:57:43     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/get_element_shadow_root/get.py | test_no_browsing_context - AssertionError: assert 'no such element' == 'no such window'
[task 2022-05-13T16:57:43.061Z] 16:57:43     INFO - session = <Session 0e789237-928f-4ab6-97ae-5b0b6ad4c39c>, closed_frame = None
[task 2022-05-13T16:57:43.061Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.061Z] 16:57:43     INFO -     def test_no_browsing_context(session, closed_frame):
[task 2022-05-13T16:57:43.062Z] 16:57:43     INFO -         response = get_shadow_root(session, "foo")
[task 2022-05-13T16:57:43.062Z] 16:57:43     INFO - >       assert_error(response, "no such window")
[task 2022-05-13T16:57:43.062Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.062Z] 16:57:43     INFO - closed_frame = None
[task 2022-05-13T16:57:43.067Z] 16:57:43     INFO - response   = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2022-05-13T16:57:43.068Z] 16:57:43     INFO - session    = <Session 0e789237-928f-4ab6-97ae-5b0b6ad4c39c>
[task 2022-05-13T16:57:43.068Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.068Z] 16:57:43     INFO - tests/web-platform/tests/webdriver/tests/get_element_shadow_root/get.py:27: 
[task 2022-05-13T16:57:43.068Z] 16:57:43     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-05-13T16:57:43.068Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.069Z] 16:57:43     INFO - response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2022-05-13T16:57:43.069Z] 16:57:43     INFO - error_code = 'no such window'
[task 2022-05-13T16:57:43.070Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.070Z] 16:57:43     INFO -     def assert_error(response, error_code):
[task 2022-05-13T16:57:43.071Z] 16:57:43     INFO -         """
[task 2022-05-13T16:57:43.071Z] 16:57:43     INFO -         Verify that the provided webdriver.Response instance described
[task 2022-05-13T16:57:43.071Z] 16:57:43     INFO -         a valid error response as defined by `dfn-send-an-error` and
[task 2022-05-13T16:57:43.071Z] 16:57:43     INFO -         the provided error code.
[task 2022-05-13T16:57:43.072Z] 16:57:43     INFO -     
[task 2022-05-13T16:57:43.072Z] 16:57:43     INFO -         :param response: ``webdriver.Response`` instance.
[task 2022-05-13T16:57:43.072Z] 16:57:43     INFO -         :param error_code: String value of the expected error code
[task 2022-05-13T16:57:43.073Z] 16:57:43     INFO -         """
[task 2022-05-13T16:57:43.073Z] 16:57:43     INFO -         assert response.status == errors[error_code]
[task 2022-05-13T16:57:43.074Z] 16:57:43     INFO -         assert "value" in response.body
[task 2022-05-13T16:57:43.075Z] 16:57:43     INFO - >       assert response.body["value"]["error"] == error_code
[task 2022-05-13T16:57:43.075Z] 16:57:43     INFO - E       AssertionError: assert 'no such element' == 'no such window'
[task 2022-05-13T16:57:43.076Z] 16:57:43     INFO - E         - no such window
[task 2022-05-13T16:57:43.076Z] 16:57:43     INFO - E         + no such element
[task 2022-05-13T16:57:43.076Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.076Z] 16:57:43     INFO - error_code = 'no such window'
[task 2022-05-13T16:57:43.077Z] 16:57:43     INFO - response   = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2022-05-13T16:57:43.077Z] 16:57:43     INFO - 
[task 2022-05-13T16:57:43.077Z] 16:57:43     INFO - tests/web-platform/tests/webdriver/tests/support/asserts.py:54: AssertionError
[task 2022-05-13T16:57:43.077Z] 16:57:43     INFO - ....
[task 2022-05-13T16:57:43.077Z] 16:57:43     INFO - TEST-OK | /webdriver/tests/get_element_shadow_root/get.py | took 6521ms

This was fixed with the backout of bug 1533058.

Assignee: nobody → hskupin
Status: NEW → RESOLVED
Closed: 3 years ago
Keywords: assertion
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Keywords: regression
Regressed by: 1533058
Has Regression Range: --- → yes
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.