Closed Bug 1677347 Opened 5 years ago Closed 5 years ago

Intermittent /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt_twice[prompt] - NoSuchAlertException: no such alert (404):

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1677218

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

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


[task 2020-11-14T23:55:10.403Z] 23:55:10     INFO - STDOUT: >           raise err
[task 2020-11-14T23:55:10.403Z] 23:55:10     INFO - STDOUT: E           NoSuchAlertException: no such alert (404): 
[task 2020-11-14T23:55:10.403Z] 23:55:10     INFO - STDOUT: E           
[task 2020-11-14T23:55:10.403Z] 23:55:10     INFO - STDOUT: E           Remote-end stacktrace:
[task 2020-11-14T23:55:10.404Z] 23:55:10     INFO - STDOUT: E           
[task 2020-11-14T23:55:10.404Z] 23:55:10     INFO - STDOUT: E           WebDriverError@chrome://marionette/content/error.js:181:5
[task 2020-11-14T23:55:10.404Z] 23:55:10     INFO - STDOUT: E           NoSuchAlertError@chrome://marionette/content/error.js:382:5
[task 2020-11-14T23:55:10.404Z] 23:55:10     INFO - STDOUT: E           GeckoDriver.prototype._checkIfAlertIsPresent@chrome://marionette/content/driver.js:3476:11
[task 2020-11-14T23:55:10.404Z] 23:55:10     INFO - STDOUT: E           GeckoDriver.prototype.getTextFromDialog@chrome://marionette/content/driver.js:3421:8
[task 2020-11-14T23:55:10.405Z] 23:55:10     INFO - STDOUT: E           despatch@chrome://marionette/content/server.js:297:40
[task 2020-11-14T23:55:10.405Z] 23:55:10     INFO - STDOUT: E           execute@chrome://marionette/content/server.js:267:16
[task 2020-11-14T23:55:10.405Z] 23:55:10     INFO - STDOUT: E           onPacket/<@chrome://marionette/content/server.js:240:20
[task 2020-11-14T23:55:10.405Z] 23:55:10     INFO - STDOUT: E           onPacket@chrome://marionette/content/server.js:241:9
[task 2020-11-14T23:55:10.405Z] 23:55:10     INFO - STDOUT: E           _onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20
[task 2020-11-14T23:55:10.405Z] 23:55:10     INFO - STDOUT: body       = None
[task 2020-11-14T23:55:10.406Z] 23:55:10     INFO - STDOUT: err        = <NoSuchAlertException http_status=404>
[task 2020-11-14T23:55:10.406Z] 23:55:10     INFO - STDOUT: method     = 'GET'
[task 2020-11-14T23:55:10.406Z] 23:55:10     INFO - STDOUT: response   = <Response status=404 error=<NoSuchAlertException http_status=404>>
[task 2020-11-14T23:55:10.407Z] 23:55:10     INFO - STDOUT: self       = <Session 54171627-dcf1-4c0b-82a4-1e3d0289f2fc>
[task 2020-11-14T23:55:10.407Z] 23:55:10     INFO - STDOUT: timeout    = None
[task 2020-11-14T23:55:10.407Z] 23:55:10     INFO - STDOUT: url        = 'session/54171627-dcf1-4c0b-82a4-1e3d0289f2fc/alert/text'
[task 2020-11-14T23:55:10.407Z] 23:55:10     INFO - STDOUT: tests\web-platform\tests\tools\webdriver\webdriver\client.py
[task 2020-11-14T23:55:10.408Z] 23:55:10     INFO - STDOUT: :544: NoSuchAlertException
[task 2020-11-14T23:55:10.408Z] 23:55:10     INFO - STDOUT: ============================== warnings summary ===============================
[task 2020-11-14T23:55:10.408Z] 23:55:10     INFO - STDOUT: <undetermined location>
[task 2020-11-14T23:55:10.408Z] 23:55:10     INFO - STDOUT:   Module already imported so cannot be rewritten: tests.support.fixtures
[task 2020-11-14T23:55:10.409Z] 23:55:10     INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
[task 2020-11-14T23:55:10.409Z] 23:55:10     INFO - STDOUT: =============== 1 failed, 11 passed, 1 warnings in 2.76 seconds ===============
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_no_top_browsing_context 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_no_browsing_context 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_opening_new_window_keeps_current_window_handle 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_ending_comment 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_override_listeners 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt[alert] 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt[confirm] 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt[prompt] 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt_twice[alert] 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt_twice[confirm]
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt_twice[prompt] - NoSuchAlertException: no such alert (404):
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - session = <Session 54171627-dcf1-4c0b-82a4-1e3d0289f2fc>, dialog_type = 'prompt'
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO - 
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO -     @pytest.mark.parametrize("dialog_type", ["alert", "confirm", "prompt"])
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO -     def test_abort_by_user_prompt_twice(session, dialog_type):
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO -         response = execute_script(
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO -             session, "window.{0}('Hello'); window.{0}('Bye'); return 1;".format(dialog_type))
[task 2020-11-14T23:55:10.423Z] 23:55:10     INFO -         assert_success(response, None)
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO -     
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO -         session.alert.accept()
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO -     
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO -         # The first alert has been accepted by the user prompt handler, the second one remains.
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO -         # FIXME: this is how browsers currently work, but the spec should clarify if this is the
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO -         #        expected behavior, see https://github.com/w3c/webdriver/issues/1153.
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - >       assert session.alert.text == "Bye"
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - 
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - dialog_type = 'prompt'
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - response   = <Responsetatus=200 body={"value": null}>
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - session    = <Session 54171627-dcf1-4c0b-82a4-1e3d0289f2fc>
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - 
[task 2020-11-14T23:55:10.424Z] 23:55:10     INFO - tests\web-platform\tests\webdriver\tests\execute_script\execute.py:94: ```
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
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.