Closed
Bug 1746278
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/execute_async_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - 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)
Details
(Keywords: intermittent-failure)
Filed by: mlaza [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=361388487&repo=mozilla-esr91
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Rr60sytxSn2df9MAo0PxZQ/runs/0/artifacts/public/logs/live_backing.log
[task 2021-12-15T21:08:53.400Z] 21:08:53 INFO - TEST-PASS | /webdriver/tests/execute_async_script/user_prompts.py | test_accept_and_notify[capabilities0-prompt-]
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_async_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7f9e10818a70>
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - dialog_type = 'alert', retval = None
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO -
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss"})
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - @pytest.mark.parametrize("dialog_type, retval", [
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - ("alert", None),
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - ("confirm", False),
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - ("prompt", None),
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - ])
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - def test_dismiss(check_user_prompt_closed_without_exception, dialog_type, retval):
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - > check_user_prompt_closed_without_exception(dialog_type, retval)
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO -
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7f9e10818a70>
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - dialog_type = 'alert'
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO - retval = None
[task 2021-12-15T21:08:53.401Z] 21:08:53 INFO -
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - tests/web-platform/tests/webdriver/tests/execute_async_script/user_prompts.py:93:
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - tests/web-platform/tests/webdriver/tests/execute_async_script/user_prompts.py:21: in check_user_prompt_closed_without_exception
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - create_dialog(dialog_type, text=dialog_type)
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7f9e10818a70>
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7f9e10818b00>
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - dialog_type = 'alert'
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - retval = None
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - session = <Session 7ada7506-ca42-b245-9bc2-a5c647d30ac1>
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:267: in create_dialog
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - """, args=(dialog_type, text))
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - dialog_type = 'alert'
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - session = <Session 7ada7506-ca42-b245-9bc2-a5c647d30ac1>
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - text = 'alert'
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - return func(self, *args, **kwargs)
[task 2021-12-15T21:08:53.402Z] 21:08:53 INFO - args = ('\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' let text = arguments[1];\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - '\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' setTimeout(function() {\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' } else {\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' }\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' }, 0);\n'
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - ' ',)
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - func = <function Session.execute_async_script at 0x7f9e0c82d290>
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - kwargs = {'args': ('alert', 'alert')}
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - self = <Session 7ada7506-ca42-b245-9bc2-a5c647d30ac1>
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - session = <Session 7ada7506-ca42-b245-9bc2-a5c647d30ac1>
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:772: in execute_async_script
[task 2021-12-15T21:08:53.403Z] 21:08:53 INFO - return self.send_session_command("POST", "execute/async", body)
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - args = ('alert', 'alert')
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - body = {'args': ('alert', 'alert'),
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - 'script': '\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' let text = arguments[1];\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - '\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' setTimeout(function() {\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' window.dialog_return_value = '
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' } else {\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' window.dialog_return_value = '
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - 'window[dialog_type](text);\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' }\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' }, 0);\n'
[task 2021-12-15T21:08:53.404Z] 21:08:53 INFO - ' '}
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - script = ('\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' let text = arguments[1];\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - '\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' setTimeout(function() {\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' } else {\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' }\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' }, 0);\n'
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - ' ')
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - self = <Session 7ada7506-ca42-b245-9bc2-a5c647d30ac1>
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:640: in send_session_command
[task 2021-12-15T21:08:53.405Z] 21:08:53 INFO - return self.send_command(method, url, body, timeout)
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
•