Closed
Bug 1744618
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/get_window_handles/user_prompts.py | test_dismiss_and_notify[capabilities0-alert] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1737282
People
(Reporter: intermittent-bug-filer, Unassigned)
References
Details
(Keywords: intermittent-failure)
Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=360291882&repo=mozilla-esr91
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/JjHFnSUATFa0OaFPTx5QCw/runs/0/artifacts/public/logs/live_backing.log
[task 2021-12-06T21:17:21.137Z] 21:17:21 INFO - TEST-PASS | /webdriver/tests/get_window_handles/user_prompts.py | test_dismiss[capabilities0-prompt]
[task 2021-12-06T21:17:21.137Z] 21:17:21 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/get_window_handles/user_prompts.py | test_dismiss_and_notify[capabilities0-alert] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2021-12-06T21:17:21.137Z] 21:17:21 INFO - check_user_prompt_not_closed_but_exception = <function check_user_prompt_not_closed_but_exception.<locals>.check_user_prompt_not_closed_but_exception at 0x7fc504736830>
[task 2021-12-06T21:17:21.137Z] 21:17:21 INFO - dialog_type = 'alert'
[task 2021-12-06T21:17:21.137Z] 21:17:21 INFO -
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss and notify"})
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - @pytest.mark.parametrize("dialog_type", ["alert", "confirm", "prompt"])
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - def test_dismiss_and_notify(check_user_prompt_not_closed_but_exception, dialog_type):
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - > check_user_prompt_not_closed_but_exception(dialog_type)
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO -
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - check_user_prompt_not_closed_but_exception = <function check_user_prompt_not_closed_but_exception.<locals>.check_user_prompt_not_closed_but_exception at 0x7fc504736830>
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - dialog_type = 'alert'
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO -
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - tests/web-platform/tests/webdriver/tests/get_window_handles/user_prompts.py:50:
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - tests/web-platform/tests/webdriver/tests/get_window_handles/user_prompts.py:18: in check_user_prompt_not_closed_but_exception
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - create_dialog(dialog_type, text=dialog_type)
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7fc5047363b0>
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - dialog_type = 'alert'
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - session = <Session b67e4920-9741-5348-9554-d36b6dadedaa>
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - window_handles = ['ab1d47c8-a75f-7a47-8d77-4eb616ee752f']
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:267: in create_dialog
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - """, args=(dialog_type, text))
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - dialog_type = 'alert'
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - session = <Session b67e4920-9741-5348-9554-d36b6dadedaa>
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - text = 'alert'
[task 2021-12-06T21:17:21.138Z] 21:17:21 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - return func(self, *args, **kwargs)
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - args = ('\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - '\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' } else {\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' }\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' }, 0);\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' ',)
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - func = <function Session.execute_async_script at 0x7fc5046edef0>
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - kwargs = {'args': ('alert', 'alert')}
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - self = <Session b67e4920-9741-5348-9554-d36b6dadedaa>
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - session = <Session b67e4920-9741-5348-9554-d36b6dadedaa>
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:772: in execute_async_script
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - return self.send_session_command("POST", "execute/async", body)
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - args = ('alert', 'alert')
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - body = {'args': ('alert', 'alert'),
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - 'script': '\n'
[task 2021-12-06T21:17:21.139Z] 21:17:21 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - '\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' } else {\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - 'window[dialog_type](text);\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' }\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' }, 0);\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' '}
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - script = ('\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - '\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:17:21.140Z] 21:17:21 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' } else {\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' }\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' }, 0);\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' ')
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - self = <Session b67e4920-9741-5348-9554-d36b6dadedaa>
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:640: in send_session_command
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - return self.send_command(method, url, body, timeout)
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - body = {'args': ('alert', 'alert'),
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - 'script': '\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - '\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' } else {\n'
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:17:21.141Z] 21:17:21 INFO - 'window[dialog_type](text);\n'
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - ' }\n'
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - ' }, 0);\n'
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - ' '}
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - method = 'POST'
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - self = <Session b67e4920-9741-5348-9554-d36b6dadedaa>
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - timeout = None
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - uri = 'execute/async'
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - url = 'session/b67e4920-9741-5348-9554-d36b6dadedaa/execute/async'
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO -
[task 2021-12-06T21:17:21.142Z] 21:17:21 INFO - self = <Session b67e4920-9741-5348-9554-d36b6dadedaa>, method = 'POST'
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 2•2 years ago
|
||
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.
Description
•