Closed
Bug 1745522
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/get_window_handles/user_prompts.py | test_accept_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)
Details
(Keywords: intermittent-failure)
Filed by: mlaza [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=360841333&repo=mozilla-esr91
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YAzuqw8PTi69_jAEG26X2Q/runs/0/artifacts/public/logs/live_backing.log
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - TEST-PASS | /webdriver/tests/get_window_handles/user_prompts.py | test_accept[capabilities0-alert]
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - TEST-PASS | /webdriver/tests/get_window_handles/user_prompts.py | test_accept[capabilities0-confirm]
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - TEST-PASS | /webdriver/tests/get_window_handles/user_prompts.py | test_accept[capabilities0-prompt]
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/get_window_handles/user_prompts.py | test_accept_and_notify[capabilities0-alert] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2021-12-10T21:24:31.474Z] 21:24:31 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 0x7feeb4f5dcb0>
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - dialog_type = 'alert'
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO -
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "accept and notify"})
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - @pytest.mark.parametrize("dialog_type", ["alert", "confirm", "prompt"])
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - def test_accept_and_notify(check_user_prompt_not_closed_but_exception, dialog_type):
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - > check_user_prompt_not_closed_but_exception(dialog_type)
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO -
[task 2021-12-10T21:24:31.474Z] 21:24:31 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 0x7feeb4f5dcb0>
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO - dialog_type = 'alert'
[task 2021-12-10T21:24:31.474Z] 21:24:31 INFO -
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - tests/web-platform/tests/webdriver/tests/get_window_handles/user_prompts.py:38:
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-10T21:24:31.475Z] 21:24:31 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-10T21:24:31.475Z] 21:24:31 INFO - create_dialog(dialog_type, text=dialog_type)
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7feeb4f168c0>
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - dialog_type = 'alert'
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - session = <Session 328ba0d1-ed2d-c945-a61b-45a928c7d431>
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - window_handles = ['56abb946-1f47-c94b-af94-0be5aa58dcab']
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:267: in create_dialog
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - """, args=(dialog_type, text))
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - dialog_type = 'alert'
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - session = <Session 328ba0d1-ed2d-c945-a61b-45a928c7d431>
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - text = 'alert'
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2021-12-10T21:24:31.475Z] 21:24:31 INFO - return func(self, *args, **kwargs)
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - args = ('\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' let text = arguments[1];\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - '\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' setTimeout(function() {\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' } else {\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' }\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' }, 0);\n'
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - ' ',)
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - func = <function Session.execute_async_script at 0x7feeb4ecdef0>
[task 2021-12-10T21:24:31.476Z] 21:24:31 INFO - kwargs = {'args': ('alert', 'alert')}
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - self = <Session 328ba0d1-ed2d-c945-a61b-45a928c7d431>
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - session = <Session 328ba0d1-ed2d-c945-a61b-45a928c7d431>
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:772: in execute_async_script
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - return self.send_session_command("POST", "execute/async", body)
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - args = ('alert', 'alert')
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - body = {'args': ('alert', 'alert'),
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - 'script': '\n'
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - ' let text = arguments[1];\n'
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - '\n'
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - ' setTimeout(function() {\n'
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - ' window.dialog_return_value = '
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-10T21:24:31.477Z] 21:24:31 INFO - ' } else {\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' window.dialog_return_value = '
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - 'window[dialog_type](text);\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' }\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' }, 0);\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' '}
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - script = ('\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' let text = arguments[1];\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - '\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' setTimeout(function() {\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' } else {\n'
[task 2021-12-10T21:24:31.478Z] 21:24:31 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-10T21:24:31.479Z] 21:24:31 INFO - ' }\n'
[task 2021-12-10T21:24:31.479Z] 21:24:31 INFO - ' }, 0);\n'
[task 2021-12-10T21:24:31.479Z] 21:24:31 INFO - ' ')
[task 2021-12-10T21:24:31.479Z] 21:24:31 INFO - self = <Session 328ba0d1-ed2d-c945-a61b-45a928c7d431>
[task 2021-12-10T21:24:31.479Z] 21:24:31 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:640: in send_session_command
Comment hidden (Intermittent Failures Robot) |
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 3•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
•