Intermittent TestTabModalAlerts.test_alert_opened_before_session_starts | StaleElementException: The element reference of X is stale; either the element is no longer attached to the DOM, it is not in the current frame context
Categories
(Testing :: Marionette Client and Harness, defect, P5)
Tracking
(firefox66 affected)
Tracking | Status | |
---|---|---|
firefox66 | --- | affected |
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure, regression)
#[markdown(off)]
Filed by: ncsoregi [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=228406571&repo=mozilla-beta
06:51:33 INFO - 1550155893665 Marionette DEBUG 15 -> [0,20,"Marionette:GetContext",{}]
06:51:33 INFO - 1550155893665 Marionette DEBUG 15 <- [1,20,null,{"value":"content"}]
06:51:33 INFO - 1550155893666 Marionette DEBUG 15 -> [0,21,"Marionette:SetContext",{"value":"content"}]
06:51:33 INFO - 1550155893666 Marionette DEBUG 15 <- [1,21,null,{"value":null}]
06:51:33 INFO - 1550155893667 Marionette DEBUG 15 -> [0,22,"WebDriver:GetPageSource",{}]
06:51:33 INFO - 1550155893668 Marionette DEBUG 15 <- [1,22,null,{"value":"<html><head>\n <title>Dialog Test</title>\n <script type=\"text/javascript\">\n function handleAler ... id=\"confirm-result\"></div>\n <div id=\"prompt-result\"></div>\n <div id=\"click-result\"></div>\n\n\n</body></html>"}]
06:51:33 INFO - 1550155893669 Marionette DEBUG 15 -> [0,23,"Marionette:SetContext",{"value":"content"}]
06:51:33 INFO - 1550155893669 Marionette DEBUG 15 <- [1,23,null,{"value":null}]
06:51:33 INFO - TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_modal_dialogs.py TestTabModalAlerts.test_alert_opened_before_session_starts | StaleElementException: The element reference of <a id="tab-modal-alert" href="#"> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
06:51:33 INFO - stacktrace:
06:51:33 INFO - WebDriverError@chrome://marionette/content/error.js:179:5
06:51:33 INFO - StaleElementReferenceError@chrome://marionette/content/error.js:438:5
06:51:33 INFO - get@chrome://marionette/content/element.js:240:13
06:51:33 INFO - clickElement@chrome://marionette/content/listener.js:1201:14
06:51:33 INFO - Traceback (most recent call last):
06:51:33 INFO - File "/Users/cltbld/tasks/task_1550155400/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 159, in run
06:51:33 INFO - testMethod()
06:51:33 INFO - File "/Users/cltbld/tasks/task_1550155400/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_modal_dialogs.py", line 108, in test_alert_opened_before_session_starts
06:51:33 INFO - self.marionette.find_element(By.ID, "tab-modal-alert").click()
06:51:33 INFO - File "/Users/cltbld/tasks/task_1550155400/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 94, in click
06:51:33 INFO - {"id": self.id})
06:51:33 INFO - File "/Users/cltbld/tasks/task_1550155400/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 26, in _
06:51:33 INFO - return func(*args, **kwargs)
06:51:33 INFO - File "/Users/cltbld/tasks/task_1550155400/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 764, in _send_message
06:51:33 INFO - self._handle_error(err)
06:51:33 INFO - File "/Users/cltbld/tasks/task_1550155400/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 784, in _handle_error
06:51:33 INFO - raise errors.lookup(error)(message, stacktrace=stacktrace)
06:51:33 INFO - TEST-INFO took 172ms
Very strange. Looks like we had a dangling page load listener running given that this log line appears after the call to findElement.
06:51:33 INFO - 1550155893532 Marionette DEBUG 15 -> [0,13,"WebDriver:Navigate",{"url":"http://127.0.0.1:50388/test_tab_modal_dialogs.html"}]
06:51:33 INFO - 1550155893544 Marionette TRACE [2147483649] Received DOM event beforeunload for http://127.0.0.1:50388/test_tab_modal_dialogs.html#
06:51:33 INFO - 1550155893546 Marionette TRACE [2147483649] Received DOM event hashchange for http://127.0.0.1:50388/test_tab_modal_dialogs.html#
06:51:33 INFO - 1550155893550 Marionette DEBUG 15 <- [1,13,null,{"value":null}]
06:51:33 INFO - 1550155893559 Marionette DEBUG 15 -> [0,14,"WebDriver:FindElement",{"using":"id","value":"tab-modal-alert"}]
06:51:33 INFO - 1550155893565 Marionette DEBUG 15 <- [1,14,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"e34d6b3d-d6ad-0843-a28f-6d90ed3a01ea"}}]
06:51:33 INFO - 1550155893591 Marionette DEBUG [2147483649] Canceled page load listener because no navigation has been detected
06:51:33 INFO - 1550155893592 Marionette DEBUG 15 -> [0,15,"WebDriver:ElementClick",{"id":"e34d6b3d-d6ad-0843-a28f-6d90ed3a01ea"}]
Comment hidden (Intermittent Failures Robot) |
Comment 3•6 years ago
|
||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Description
•