Closed
Bug 1744619
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/execute_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)
References
Details
(Keywords: intermittent-failure)
Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=360296677&repo=mozilla-esr91
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/F2OkEuV7RSeUWedO1qXh0Q/runs/0/artifacts/public/logs/live_backing.log
[task 2021-12-06T21:31:01.560Z] 21:31:01 INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_accept_and_notify[capabilities0-prompt-]
[task 2021-12-06T21:31:01.560Z] 21:31:01 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2021-12-06T21:31:01.560Z] 21:31:01 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7f9a85fdcf80>
[task 2021-12-06T21:31:01.560Z] 21:31:01 INFO - dialog_type = 'alert', retval = None
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO -
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss"})
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - @pytest.mark.parametrize("dialog_type, retval", [
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - ("alert", None),
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - ("confirm", False),
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - ("prompt", None),
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - ])
[task 2021-12-06T21:31:01.561Z] 21:31:01 INFO - def test_dismiss(check_user_prompt_closed_without_exception, dialog_type, retval):
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO - > check_user_prompt_closed_without_exception(dialog_type, retval)
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO -
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7f9a85fdcf80>
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO - dialog_type = 'alert'
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO - retval = None
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO -
[task 2021-12-06T21:31:01.562Z] 21:31:01 INFO - tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:92:
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:22: in check_user_prompt_closed_without_exception
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - create_dialog(dialog_type, text=dialog_type)
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7f9a85fdc050>
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - dialog_type = 'alert'
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - retval = None
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - session = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:267: in create_dialog
[task 2021-12-06T21:31:01.563Z] 21:31:01 INFO - """, args=(dialog_type, text))
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - dialog_type = 'alert'
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - session = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - text = 'alert'
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - return func(self, *args, **kwargs)
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - args = ('\n'
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - '\n'
[task 2021-12-06T21:31:01.564Z] 21:31:01 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - ' } else {\n'
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - ' }\n'
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - ' }, 0);\n'
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - ' ',)
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - func = <function Session.execute_async_script at 0x7f9a8592d290>
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - kwargs = {'args': ('alert', 'alert')}
[task 2021-12-06T21:31:01.565Z] 21:31:01 INFO - self = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - session = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:772: in execute_async_script
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - return self.send_session_command("POST", "execute/async", body)
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - args = ('alert', 'alert')
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - body = {'args': ('alert', 'alert'),
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - 'script': '\n'
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - '\n'
[task 2021-12-06T21:31:01.566Z] 21:31:01 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - ' } else {\n'
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - 'window[dialog_type](text);\n'
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - ' }\n'
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - ' }, 0);\n'
[task 2021-12-06T21:31:01.567Z] 21:31:01 INFO - ' '}
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - script = ('\n'
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - '\n'
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - ' } else {\n'
[task 2021-12-06T21:31:01.568Z] 21:31:01 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - ' }\n'
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - ' }, 0);\n'
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - ' ')
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - self = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:640: in send_session_command
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - return self.send_command(method, url, body, timeout)
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - body = {'args': ('alert', 'alert'),
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - 'script': '\n'
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - ' let text = arguments[1];\n'
[task 2021-12-06T21:31:01.569Z] 21:31:01 INFO - '\n'
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' setTimeout(function() {\n'
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' } else {\n'
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' window.dialog_return_value = '
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - 'window[dialog_type](text);\n'
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' }\n'
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' }, 0);\n'
[task 2021-12-06T21:31:01.570Z] 21:31:01 INFO - ' '}
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - method = 'POST'
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - self = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - timeout = None
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - uri = 'execute/async'
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - url = 'session/35932e6d-cc66-0248-bb68-acc35ab47494/execute/async'
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO -
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - self = <Session 35932e6d-cc66-0248-bb68-acc35ab47494>, method = 'POST'
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - url = 'session/35932e6d-cc66-0248-bb68-acc35ab47494/execute/async'
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - body = {'args': ('alert', 'alert'), 'script': '\n let dialog_type = arguments[0];\n let text = argument... window.dialog_return_value = window[dialog_type](text);\n }\n }, 0);\n '}
[task 2021-12-06T21:31:01.571Z] 21:31:01 INFO - timeout = None
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
•