Closed Bug 1830269 Opened 3 years ago Closed 2 years ago

Intermittent /webdriver/tests/get_element_tag_name/get.py | test_no_such_element_from_other_window_handle[closed] - teardown error: webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=413939738&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/HwoygG-cTUe5Dbu-hV35ig/runs/0/artifacts/public/logs/live_backing.log


task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - TEST-PASS | /webdriver/tests/get_element_tag_name/get.py | test_no_such_element_from_other_window_handle[open] 
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/get_element_tag_name/get.py | test_no_such_element_from_other_window_handle[closed] - teardown error: webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - session = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO -     @ignore_exceptions
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO -     def _ensure_valid_window(session):
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO -         """If current window was closed, ensure to have a valid one selected."""
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO -         try:
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - >           session.window_handle
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - session    = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - tests\web-platform\tests\webdriver\tests\support\helpers.py:41: 
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.905Z] 10:03:46     INFO - self = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>, args = (), kwargs = {}
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - session = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -     def inner(self, *args, **kwargs):
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -         if hasattr(self, "session"):
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -             session = self.session
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -         else:
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -             session = self
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -     
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -         if session.session_id is None:
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -             session.start()
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO -     
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - >       return func(self, *args, **kwargs)
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - args       = ()
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - func       = <function Session.window_handle at 0x000001F555ECD430>
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - kwargs     = {}
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - self       = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - session    = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.906Z] 10:03:46     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:22: 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - self = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO -     @property
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO -     @command
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO -     def window_handle(self):
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - >       return self.send_session_command("GET", "window")
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - self       = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:705: 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - self = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>, method = 'GET'
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - uri = 'window', body = None, timeout = None
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO -     def send_session_command(self, method, uri, body=None, timeout=None):
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO -         """
[task 2023-04-27T10:03:46.907Z] 10:03:46     INFO -         Send a command to an established session and validate its success.
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -     
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         :param method: HTTP method to use in request.
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         :param url: "Command part" of the HTTP request URL,
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -             e.g. `window/rect`.
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         :param body: Optional body of the HTTP request.  Must be JSON
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -             serialisable.
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -     
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         :return: `None` if the HTTP response body was empty, otherwise
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -             the result of parsing the body as JSON.
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -     
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         :raises error.WebDriverException: If the remote end returns
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -             an error.
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         """
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO -         url = urlparse.urljoin("session/%s/" % self.session_id, uri)
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - >       return self.send_command(method, url, body, timeout)
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - body       = None
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - method     = 'GET'
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - self       = <Session 68329c27-f00c-48c5-b441-a5c1f92f765b>
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - timeout    = None
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - uri        = 'window'
[task 2023-04-27T10:03:46.908Z] 10:03:46     INFO - url        = 'session/68329c27-f00c-48c5-b441-a5c1f92f765b/window'
[task 2023-04-27T10:03:46.909Z] 10:03:46     INFO - 
[task 2023-04-27T10:03:46.909Z] 10:03:46     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:658: 
[task 2023-04-27T10:03:46.909Z] 10:03:46     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.