Closed
Bug 1749626
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/switch_to_window/alerts.py | test_retain_tab_modal_status - webdriver.error.NoSuchAlertException: no such alert (404):
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(firefox-esr91 unaffected, firefox96 unaffected, firefox97 fixed, firefox98 fixed)
RESOLVED
FIXED
98 Branch
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox96 | --- | unaffected |
firefox97 | --- | fixed |
firefox98 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: whimboo)
References
(Regression)
Details
(Keywords: intermittent-failure, regression)
Filed by: nfay [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=363781583&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/fSZZsJT2T8KK_cle8HmHWg/runs/0/artifacts/public/logs/live_backing.log
[task 2022-01-11T22:41:49.787Z] 22:41:49 INFO - TEST-START | /webdriver/tests/switch_to_window/alerts.py
[task 2022-01-11T22:41:49.788Z] 22:41:49 INFO - PID 24864 | 1641940909781 geckodriver INFO Listening on 127.0.0.1:35374
<...>
[task 2022-01-11T22:41:55.663Z] 22:41:55 INFO - STDOUT: E WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5
[task 2022-01-11T22:41:55.664Z] 22:41:55 INFO - STDOUT: E NoSuchAlertError@chrome://remote/content/shared/webdriver/Errors.jsm:384:5
[task 2022-01-11T22:41:55.665Z] 22:41:55 INFO - STDOUT: E GeckoDriver.prototype._checkIfAlertIsPresent@chrome://remote/content/marionette/driver.js:2527:11
[task 2022-01-11T22:41:55.666Z] 22:41:55 INFO - STDOUT: E GeckoDriver.prototype.getTextFromDialog@chrome://remote/content/marionette/driver.js:2472:8
[task 2022-01-11T22:41:55.667Z] 22:41:55 INFO - STDOUT: E despatch@chrome://remote/content/marionette/server.js:306:40
[task 2022-01-11T22:41:55.668Z] 22:41:55 INFO - STDOUT: E execute@chrome://remote/content/marionette/server.js:279:16
[task 2022-01-11T22:41:55.669Z] 22:41:55 INFO - STDOUT: E onPacket/<@chrome://remote/content/marionette/server.js:252:20
[task 2022-01-11T22:41:55.669Z] 22:41:55 INFO - STDOUT: E onPacket@chrome://remote/content/marionette/server.js:253:9
[task 2022-01-11T22:41:55.670Z] 22:41:55 INFO - STDOUT: E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20
[task 2022-01-11T22:41:55.671Z] 22:41:55 INFO - STDOUT: body = None
[task 2022-01-11T22:41:55.672Z] 22:41:55 INFO - STDOUT: err = <NoSuchAlertException http_status=404>
[task 2022-01-11T22:41:55.672Z] 22:41:55 INFO - STDOUT: method = 'GET'
[task 2022-01-11T22:41:55.673Z] 22:41:55 INFO - STDOUT: response = <Response status=404 error=<NoSuchAlertException http_status=404>>
[task 2022-01-11T22:41:55.674Z] 22:41:55 INFO - STDOUT: self = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>
[task 2022-01-11T22:41:55.675Z] 22:41:55 INFO - STDOUT: timeout = None
[task 2022-01-11T22:41:55.676Z] 22:41:55 INFO - STDOUT: url = 'session/9aff9f94-95a3-443f-b6f0-caae94e89473/alert/text'
[task 2022-01-11T22:41:55.679Z] 22:41:55 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2022-01-11T22:41:55.680Z] 22:41:55 INFO - STDOUT: :623: NoSuchAlertException
[task 2022-01-11T22:41:55.681Z] 22:41:55 INFO - STDOUT: =========================== short test summary info ============================
[task 2022-01-11T22:41:55.682Z] 22:41:55 INFO - STDOUT: FAILED tests/web-platform/tests/webdriver/tests/switch_to_window/alerts.py::test_retain_tab_modal_status
[task 2022-01-11T22:41:55.683Z] 22:41:55 INFO - STDOUT: ============================== 1 failed in 5.54s ===============================
[task 2022-01-11T22:41:55.690Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.690Z] 22:41:55 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/switch_to_window/alerts.py | test_retain_tab_modal_status - webdriver.error.NoSuchAlertException: no such alert (404):
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO - session = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO - def test_retain_tab_modal_status(session):
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO - handle = session.window_handle
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO - new_handle = session.new_window()
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO - response = switch_to_window(session, new_handle)
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO - assert_success(response)
[task 2022-01-11T22:41:55.691Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - session.execute_script("window.alert('Hello');")
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - > assert session.alert.text == "Hello"
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - handle = '66199a04-a4e5-48fa-9930-8d0badf262f6'
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - new_handle = '5ddadc77-8d78-4445-b6de-6c75e19baa45'
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - response = <Responsetatus=200 body={"value": null}>
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - session = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - tests/web-platform/tests/webdriver/tests/switch_to_window/alerts.py:22:
[task 2022-01-11T22:41:55.692Z] 22:41:55 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:20: in inner
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - return func(self, *args, **kwargs)
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - args = ()
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - func = <function UserPrompt.text at 0x7f0e8f5bc1e0>
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - kwargs = {}
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - self = <webdriver.client.UserPrompt object at 0x7f0e8f6187b8>
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - session = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:479: in text
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - return self.session.send_session_command("GET", "alert/text")
[task 2022-01-11T22:41:55.693Z] 22:41:55 INFO - self = <webdriver.client.UserPrompt object at 0x7f0e8f6187b8>
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:659: in send_session_command
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - return self.send_command(method, url, body, timeout)
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - body = None
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - method = 'GET'
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - self = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - timeout = None
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - uri = 'alert/text'
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - url = 'session/9aff9f94-95a3-443f-b6f0-caae94e89473/alert/text'
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-01-11T22:41:55.694Z] 22:41:55 INFO - self = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>, method = 'GET'
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - url = 'session/9aff9f94-95a3-443f-b6f0-caae94e89473/alert/text', body = None
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - timeout = None
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - """
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - Send a command to the remote end and validate its success.
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - :param method: HTTP method to use in request.
[task 2022-01-11T22:41:55.695Z] 22:41:55 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2022-01-11T22:41:55.696Z] 22:41:55 INFO - e.g. `window/rect`.
[task 2022-01-11T22:41:55.696Z] 22:41:55 INFO - :param body: Optional body of the HTTP request.
[task 2022-01-11T22:41:55.696Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - the `value` field returned after parsing the response
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - body as JSON.
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - :raises error.WebDriverException: If the remote end returns
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - an error.
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - :raises ValueError: If the response body does not contain a
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - `value` key.
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO - """
[task 2022-01-11T22:41:55.697Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - response = self.transport.send(
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - method, url, body,
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - session=self, timeout=timeout)
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - if response.status != 200:
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - err = error.from_response(response)
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - # The driver could have already been deleted the session.
[task 2022-01-11T22:41:55.698Z] 22:41:55 INFO - self.session_id = None
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - > raise err
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E webdriver.error.NoSuchAlertException: no such alert (404):
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E Remote-end stacktrace:
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E NoSuchAlertError@chrome://remote/content/shared/webdriver/Errors.jsm:384:5
[task 2022-01-11T22:41:55.699Z] 22:41:55 INFO - E GeckoDriver.prototype._checkIfAlertIsPresent@chrome://remote/content/marionette/driver.js:2527:11
[task 2022-01-11T22:41:55.700Z] 22:41:55 INFO - E GeckoDriver.prototype.getTextFromDialog@chrome://remote/content/marionette/driver.js:2472:8
[task 2022-01-11T22:41:55.700Z] 22:41:55 INFO - E despatch@chrome://remote/content/marionette/server.js:306:40
[task 2022-01-11T22:41:55.700Z] 22:41:55 INFO - E execute@chrome://remote/content/marionette/server.js:279:16
[task 2022-01-11T22:41:55.700Z] 22:41:55 INFO - E onPacket/<@chrome://remote/content/marionette/server.js:252:20
[task 2022-01-11T22:41:55.700Z] 22:41:55 INFO - E onPacket@chrome://remote/content/marionette/server.js:253:9
[task 2022-01-11T22:41:55.700Z] 22:41:55 INFO - E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - body = None
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - err = <NoSuchAlertException http_status=404>
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - method = 'GET'
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - response = <Response status=404 error=<NoSuchAlertException http_status=404>>
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - self = <Session 9aff9f94-95a3-443f-b6f0-caae94e89473>
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - timeout = None
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - url = 'session/9aff9f94-95a3-443f-b6f0-caae94e89473/alert/text'
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO -
[task 2022-01-11T22:41:55.701Z] 22:41:55 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:623: NoSuchAlertException
[task 2022-01-11T22:41:55.702Z] 22:41:55 INFO - TEST-OK | /webdriver/tests/switch_to_window/alerts.py | took 5851ms
[task 2022-01-11T22:41:55.757Z] 22:41:55 INFO - Closing logging queue
[task 2022-01-11T22:41:55.760Z] 22:41:55 INFO - queue closed
[task 2022-01-11T22:41:55.762Z] 22:41:55 INFO - Starting runner
[task 2022-01-11T22:41:56.355Z] 22:41:56 INFO - PID 25090 | 1641940916351 geckodriver INFO Listening on 127.0.0.1:40275
[task 2022-01-11T22:41:56.356Z] 22:41:56 INFO - WebDriver HTTP server listening at http://127.0.0.1:40275/
[task 2022-01-11T22:41:56.357Z] 22:41:56 INFO - TEST-START | /webdriver/tests/switch_to_window/switch.py
Assignee | ||
Comment 1•3 years ago
|
||
The alert that should open via a Execute Script
command is not immediately opened and the test fails. Not sure if that is a regression from bug 1739369.
Assignee | ||
Comment 2•3 years ago
|
||
Lets add the dependency to bug 1747359 so we can check next week it if it's fixed.
Depends on: 1747359
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → hskupin
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox97:
--- → affected
status-firefox98:
--- → fixed
Keywords: regression
Regressed by: 1739369
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Comment 4•3 years ago
|
||
Set release status flags based on info from the regressing bug 1739369
status-firefox96:
--- → unaffected
status-firefox-esr91:
--- → unaffected
Updated•3 years ago
|
Updated•3 years ago
|
Has Regression Range: --- → yes
Reporter | ||
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 6•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
•