Closed Bug 1631471 Opened 4 years ago Closed 4 years ago

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

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(firefox76 unaffected, firefox77 wontfix, firefox78 fixed)

RESOLVED DUPLICATE of bug 1629147
Tracking Status
firefox76 --- unaffected
firefox77 --- wontfix
firefox78 --- fixed

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: apavel [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=298379626&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DqeZEsbsSt-Bzs53FdX7ww/runs/0/artifacts/public/logs/live_backing.log


[task 2020-04-20T11:27:16.249Z] 11:27:16 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-04-20T11:27:16.250Z] 11:27:16 INFO - STDOUT: :19: in inner
[task 2020-04-20T11:27:16.251Z] 11:27:16 INFO - STDOUT: return func(self, *args, **kwargs)
[task 2020-04-20T11:27:16.251Z] 11:27:16 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-04-20T11:27:16.251Z] 11:27:16 INFO - STDOUT: :356: in accept
[task 2020-04-20T11:27:16.251Z] 11:27:16 INFO - STDOUT: self.session.send_session_command("POST", "alert/accept")
[task 2020-04-20T11:27:16.259Z] 11:27:16 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-04-20T11:27:16.260Z] 11:27:16 INFO - STDOUT: :513: in send_session_command
[task 2020-04-20T11:27:16.260Z] 11:27:16 INFO - STDOUT: return self.send_command(method, url, body, timeout)
[task 2020-04-20T11:27:16.260Z] 11:27:16 INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-04-20T11:27:16.261Z] 11:27:16 INFO - STDOUT: self = <Session 4d24cb2f-ce5a-7441-ac77-d1c1eba17738>, method = 'POST'
[task 2020-04-20T11:27:16.261Z] 11:27:16 INFO - STDOUT: url = 'session/4d24cb2f-ce5a-7441-ac77-d1c1eba17738/alert/accept', body = None
[task 2020-04-20T11:27:16.261Z] 11:27:16 INFO - STDOUT: timeout = None
[task 2020-04-20T11:27:16.262Z] 11:27:16 INFO - STDOUT: def send_command(self, method, url, body=None, timeout=None):
[task 2020-04-20T11:27:16.262Z] 11:27:16 INFO - STDOUT: """
[task 2020-04-20T11:27:16.262Z] 11:27:16 INFO - STDOUT: Send a command to the remote end and validate its success.
[task 2020-04-20T11:27:16.262Z] 11:27:16 INFO - STDOUT:
[task 2020-04-20T11:27:16.263Z] 11:27:16 INFO - STDOUT: :param method: HTTP method to use in request.
[task 2020-04-20T11:27:16.263Z] 11:27:16 INFO - STDOUT: :param uri: "Command part" of the HTTP request URL,
[task 2020-04-20T11:27:16.263Z] 11:27:16 INFO - STDOUT: e.g. window/rect.
[task 2020-04-20T11:27:16.263Z] 11:27:16 INFO - STDOUT: :param body: Optional body of the HTTP request.
[task 2020-04-20T11:27:16.264Z] 11:27:16 INFO - STDOUT:
[task 2020-04-20T11:27:16.264Z] 11:27:16 INFO - STDOUT: :return: None if the HTTP response body was empty, otherwise
[task 2020-04-20T11:27:16.264Z] 11:27:16 INFO - STDOUT: the value field returned after parsing the response
[task 2020-04-20T11:27:16.264Z] 11:27:16 INFO - STDOUT: body as JSON.
[task 2020-04-20T11:27:16.264Z] 11:27:16 INFO - STDOUT:
[task 2020-04-20T11:27:16.265Z] 11:27:16 INFO - STDOUT: :raises error.WebDriverException: If the remote end returns
[task 2020-04-20T11:27:16.265Z] 11:27:16 INFO - STDOUT: an error.
[task 2020-04-20T11:27:16.265Z] 11:27:16 INFO - STDOUT: :raises ValueError: If the response body does not contain a
[task 2020-04-20T11:27:16.265Z] 11:27:16 INFO - STDOUT: value key.
[task 2020-04-20T11:27:16.265Z] 11:27:16 INFO - STDOUT: """
[task 2020-04-20T11:27:16.266Z] 11:27:16 INFO - STDOUT: response = self.transport.send(
[task 2020-04-20T11:27:16.266Z] 11:27:16 INFO - STDOUT: method, url, body,
[task 2020-04-20T11:27:16.266Z] 11:27:16 INFO - STDOUT: encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2020-04-20T11:27:16.266Z] 11:27:16 INFO - STDOUT: session=self, timeout=timeout)
[task 2020-04-20T11:27:16.266Z] 11:27:16 INFO - STDOUT:
[task 2020-04-20T11:27:16.267Z] 11:27:16 INFO - STDOUT: if response.status != 200:
[task 2020-04-20T11:27:16.267Z] 11:27:16 INFO - STDOUT: err = error.from_response(response)
[task 2020-04-20T11:27:16.267Z] 11:27:16 INFO - STDOUT:
[task 2020-04-20T11:27:16.267Z] 11:27:16 INFO - STDOUT: if isinstance(err, error.InvalidSessionIdException):
[task 2020-04-20T11:27:16.267Z] 11:27:16 INFO - STDOUT: # The driver could have already been deleted the session.
[task 2020-04-20T11:27:16.268Z] 11:27:16 INFO - STDOUT: self.session_id = None
[task 2020-04-20T11:27:16.268Z] 11:27:16 INFO - STDOUT:
[task 2020-04-20T11:27:16.268Z] 11:27:16 INFO - STDOUT: > raise err
[task 2020-04-20T11:27:16.268Z] 11:27:16 INFO - STDOUT: E NoSuchAlertException: no such alert (404):
[task 2020-04-20T11:27:16.268Z] 11:27:16 INFO - STDOUT: E
[task 2020-04-20T11:27:16.269Z] 11:27:16 INFO - STDOUT: E Remote-end stacktrace:
[task 2020-04-20T11:27:16.269Z] 11:27:16 INFO - STDOUT: E
[task 2020-04-20T11:27:16.269Z] 11:27:16 INFO - STDOUT: E WebDriverError@chrome://marionette/content/error.js:175:5
[task 2020-04-20T11:27:16.269Z] 11:27:16 INFO - STDOUT: E NoSuchAlertError@chrome://marionette/content/error.js:376:5
[task 2020-04-20T11:27:16.269Z] 11:27:16 INFO - STDOUT: E GeckoDriver.prototype._checkIfAlertIsPresent@chrome://marionette/content/driver.js:3388:11
[task 2020-04-20T11:27:16.274Z] 11:27:16 INFO - STDOUT: E GeckoDriver.prototype.acceptDialog@chrome://marionette/content/driver.js:3318:8
[task 2020-04-20T11:27:16.274Z] 11:27:16 INFO - STDOUT: E despatch@chrome://marionette/content/server.js:305:40
[task 2020-04-20T11:27:16.274Z] 11:27:16 INFO - STDOUT: E execute@chrome://marionette/content/server.js:275:16
[task 2020-04-20T11:27:16.274Z] 11:27:16 INFO - STDOUT: E onPacket/<@chrome://marionette/content/server.js:248:20
[task 2020-04-20T11:27:16.275Z] 11:27:16 INFO - STDOUT: E onPacket@chrome://marionette/content/server.js:249:9
[task 2020-04-20T11:27:16.275Z] 11:27:16 INFO - STDOUT: E _onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
[task 2020-04-20T11:27:16.275Z] 11:27:16 INFO - STDOUT: body = None
[task 2020-04-20T11:27:16.275Z] 11:27:16 INFO - STDOUT: err = <NoSuchAlertException http_status=404>
[task 2020-04-20T11:27:16.276Z] 11:27:16 INFO - STDOUT: method = 'POST'
[task 2020-04-20T11:27:16.276Z] 11:27:16 INFO - STDOUT: response = <Response status=404 error=<NoSuchAlertException http_status=404>>
[task 2020-04-20T11:27:16.276Z] 11:27:16 INFO - STDOUT: self = <Session 4d24cb2f-ce5a-7441-ac77-d1c1eba17738>
[task 2020-04-20T11:27:16.276Z] 11:27:16 INFO - STDOUT: timeout = None
[task 2020-04-20T11:27:16.276Z] 11:27:16 INFO - STDOUT: url = 'session/4d24cb2f-ce5a-7441-ac77-d1c1eba17738/alert/accept'
[task 2020-04-20T11:27:16.276Z] 11:27:16 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2020-04-20T11:27:16.277Z] 11:27:16 INFO - STDOUT: :477: NoSuchAlertException
[task 2020-04-20T11:27:16.277Z] 11:27:16 INFO - STDOUT: =============================== warnings summary ===============================
[task 2020-04-20T11:27:16.277Z] 11:27:16 INFO - STDOUT: <undetermined location>
[task 2020-04-20T11:27:16.277Z] 11:27:16 INFO - STDOUT: Module already imported so cannot be rewritten: mozlog
[task 2020-04-20T11:27:16.277Z] 11:27:16 INFO - STDOUT: Module already imported so cannot be rewritten: tests.support.fixtures
[task 2020-04-20T11:27:16.277Z] 11:27:16 INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
[task 2020-04-20T11:27:16.278Z] 11:27:16 INFO - STDOUT: ================ 1 failed, 9 passed, 2 warnings in 2.63 seconds ================
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_null_parameter_value
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_no_browsing_context
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_ending_comment
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_override_listeners
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt[alert]
[task 2020-04-20T11:27:16.395Z] 11:27:16 INFO - TEST-PASS | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt[confirm]
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/execute.py | test_abort_by_user_prompt[prompt] - NoSuchAlertException: no such alert (404):
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - session = <Session 4d24cb2f-ce5a-7441-ac77-d1c1eba17738>, dialog_type = 'prompt'
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - @pytest.mark.parametrize("dialog_type", ["alert", "confirm", "prompt"])
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - def test_abort_by_user_prompt(session, dialog_type):
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - response = execute_script(
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - session, "window.{}('Hello'); return 1;".format(dialog_type))
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - assert_success(response, None)
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - > session.alert.accept()
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - dialog_type = 'prompt'
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - response = <Responsetatus=200 body={"value": null}>
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - session = <Session 4d24cb2f-ce5a-7441-ac77-d1c1eba17738>
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - tests/web-platform/tests/webdriver/tests/execute_script/execute.py:56:
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-04-20T11:27:16.396Z] 11:27:16 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - return func(self, *args, **kwargs)
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:356: in accept
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - self.session.send_session_command("POST", "alert/accept")
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:513: in send_session_command
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - return self.send_command(method, url, body, timeout)
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - self = <Session 4d24cb2f-ce5a-7441-ac77-d1c1eba17738>, method = 'POST'
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - url = 'session/4d24cb2f-ce5a-7441-ac77-d1c1eba17738/alert/accept', body = None
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - timeout = None
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - """
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - Send a command to the remote end and validate its success.
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - :param method: HTTP method to use in request.
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2020-04-20T11:27:16.397Z] 11:27:16 INFO - e.g. window/rect.
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - :param body: Optional body of the HTTP request.
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - :return: None if the HTTP response body was empty, otherwise
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - the value field returned after parsing the response
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - body as JSON.
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - :raises error.WebDriverException: If the remote end returns
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - an error.
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - :raises ValueError: If the response body does not contain a
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - value key.
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - """
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - response = self.transport.send(
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - method, url, body,
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - session=self, timeout=timeout)
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - if response.status != 200:
[task 2020-04-20T11:27:16.398Z] 11:27:16 INFO - err = error.from_response(response)
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - # The driver could have already been deleted the session.
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - self.session_id = None
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - > raise err
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E NoSuchAlertException: no such alert (404):
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E Remote-end stacktrace:
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E WebDriverError@chrome://marionette/content/error.js:175:5
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E NoSuchAlertError@chrome://marionette/content/error.js:376:5
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E GeckoDriver.prototype._checkIfAlertIsPresent@chrome://marionette/content/driver.js:3388:11
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E GeckoDriver.prototype.acceptDialog@chrome://marionette/content/driver.js:3318:8
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E despatch@chrome://marionette/content/server.js:305:40
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E execute@chrome://marionette/content/server.js:275:16
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E onPacket/<@chrome://marionette/content/server.js:248:20
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E onPacket@chrome://marionette/content/server.js:249:9
[task 2020-04-20T11:27:16.399Z] 11:27:16 INFO - E _onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - body = None
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - err = <NoSuchAlertException http_status=404>
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - method = 'POST'
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - response = <Response status=404 error=<NoSuchAlertException http_status=404>>
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - self = <Session 4d24cb2f-ce5a-7441-ac77-d1c1eba17738>
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - timeout = None
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - url = 'session/4d24cb2f-ce5a-7441-ac77-d1c1eba17738/alert/accept'
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO -
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:477: NoSuchAlertException
[task 2020-04-20T11:27:16.400Z] 11:27:16 INFO - TEST-OK | /webdriver/tests/execute_script/execute.py | took 2782ms

Caused by:

JavaScript error: resource://gre/modules/Prompter.jsm, line 642: NS_ERROR_NOT_AVAILABLE: prompt aborted by user

Status: NEW → RESOLVED
Closed: 4 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.