Intermittent test_a11y_calendar_settings_view.py TestCalendarSettingsViewAccessibility.test_a11y_calendar_settings_view | StaleElementException: StaleElementException: The element reference is stale.

RESOLVED FIXED

Status

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: KWierso, Assigned: yzen)

Tracking

({intermittent-failure})

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=3214745&repo=mozilla-inbound
builder 	b2g_ubuntu64_vm mozilla-inbound opt test gaia-ui-test-accessibility
buildid 	20141022075835
builduid 	93a4ae6cc99a43158b322581713b771e
results 	warnings (1)
revision 	5a443ae5cf22
slave 	tst-linux64-spot-463
starttime 	Wed Oct 22 2014 09:00:27 GMT-0700 (Pacific Standard Time)



09:12:21 INFO - TEST-START | test_a11y_calendar_month_view_select_day.py TestCalendarMonthViewSelectDayAccessibility.test_a11y_calendar_month_view_select_day
09:12:50 INFO - TEST-PASS | test_a11y_calendar_month_view_select_day.py TestCalendarMonthViewSelectDayAccessibility.test_a11y_calendar_month_view_select_day | took 29495ms
09:12:50 INFO - TEST-START | test_a11y_calendar_month_view_select_event.py TestCalendarMonthViewSelectEventAccessibility.test_a11y_calendar_month_view_select_event
09:13:31 INFO - TEST-PASS | test_a11y_calendar_month_view_select_event.py TestCalendarMonthViewSelectEventAccessibility.test_a11y_calendar_month_view_select_event | took 40824ms
09:13:31 INFO - TEST-START | test_a11y_calendar_settings_view.py TestCalendarSettingsViewAccessibility.test_a11y_calendar_settings_view
09:14:02 ERROR - TEST-UNEXPECTED-ERROR | test_a11y_calendar_settings_view.py TestCalendarSettingsViewAccessibility.test_a11y_calendar_settings_view | StaleElementException: StaleElementException: The element reference is stale. Either the element is no longer attached to the DOM or the page has been refreshed.
09:14:02 INFO - Traceback (most recent call last):
09:14:02 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette_test.py", line 267, in run
09:14:02 INFO - testMethod()
09:14:02 INFO - File "/builds/slave/test/gaia/tests/python/gaia-ui-tests/gaiatest/tests/accessibility/calendar/test_a11y_calendar_settings_view.py", line 36, in test_a11y_calendar_settings_view
09:14:02 INFO - lambda m: not m.find_element(
09:14:02 INFO - File "/builds/slave/test/gaia/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 929, in wait_for_condition
09:14:02 INFO - Wait(self.marionette, timeout).until(method, message=message)
09:14:02 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/wait.py", line 122, in until
09:14:02 INFO - rv = condition(self.marionette)
09:14:02 INFO - File "/builds/slave/test/gaia/tests/python/gaia-ui-tests/gaiatest/tests/accessibility/calendar/test_a11y_calendar_settings_view.py", line 37, in <lambda>
09:14:02 INFO - *settings._calendar_local_locator).get_attribute('aria-selected'))
09:14:02 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette.py", line 76, in get_attribute
09:14:02 INFO - return self.marionette._send_message('getElementAttribute', 'value', id=self.id, name=attribute)
09:14:02 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/decorators.py", line 36, in _
09:14:02 INFO - return func(*args, **kwargs)
09:14:02 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette.py", line 638, in _send_message
09:14:02 INFO - self._handle_error(response)
09:14:02 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette.py", line 676, in _handle_error
09:14:02 INFO - raise errors.StaleElementException(message=message, status=status, stacktrace=stacktrace)
09:14:02 INFO - TEST-INFO took 30283ms
09:14:02 INFO - TEST-START | test_a11y_calendar_views_visibility.py TestCalendarViewsVisibilityAccessibility.test_a11y_calendar_views_visibility
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Flags: needinfo?(yzenevich)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(Assignee)

Comment 6

4 years ago
Created attachment 8511207 [details] [review]
Github pull request.

Because the elements get re-inserted into the DOM, the exception would pop up once in a while.
Assignee: nobody → yzenevich
Status: NEW → ASSIGNED
Flags: needinfo?(yzenevich)
Attachment #8511207 - Flags: review?(mmedeiros)
Comment on attachment 8511207 [details] [review]
Github pull request.

LGTM! thx
Attachment #8511207 - Flags: review?(mmedeiros) → review+
(Assignee)

Comment 8

4 years ago
https://github.com/mozilla-b2g/gaia/commit/5907f6d1e1b4a46201decc63d34847d1a589c097
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
You need to log in before you can comment on or make changes to this bug.