Closed
Bug 1796334
Opened 4 years ago
Closed 3 years ago
Intermittent [tier 2] /webdriver/tests/find_element_from_shadow_root/user_prompts.py | test_dismiss_and_notify[capabilities0-confirm-False] - setup error: webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: nfay [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=393733529&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/QxBeSZ1VT5aq7POE5jKEIg/runs/0/artifacts/public/logs/live_backing.log
[task 2022-10-19T21:47:23.566Z] 21:47:23 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-10-19T21:47:23.566Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.566Z] 21:47:23 INFO - self = <Session 82d84fc4-c106-4742-9e2a-b032b6196e10>, method = 'POST'
[task 2022-10-19T21:47:23.566Z] 21:47:23 INFO - url = 'session/82d84fc4-c106-4742-9e2a-b032b6196e10/window/rect'
[task 2022-10-19T21:47:23.566Z] 21:47:23 INFO - body = {'x': 100, 'y': 100}, timeout = None
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - """
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - Send a command to the remote end and validate its success.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - :param method: HTTP method to use in request.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - e.g. `window/rect`.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - :param body: Optional body of the HTTP request.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - the `value` field returned after parsing the response
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - body as JSON.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - :raises error.WebDriverException: If the remote end returns
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - an error.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - :raises ValueError: If the response body does not contain a
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - `value` key.
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - """
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - response = self.transport.send(
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - method, url, body,
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO - session=self, timeout=timeout)
[task 2022-10-19T21:47:23.567Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - if response.status != 200:
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - err = error.from_response(response)
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - # The driver could have already been deleted the session.
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - self.session_id = None
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - > raise err
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E Remote-end stacktrace:
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E NoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:436:5
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E assert.that/<@chrome://remote/content/shared/webdriver/Assert.sys.mjs:485:13
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E assert.open@chrome://remote/content/shared/webdriver/Assert.sys.mjs:147:4
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E GeckoDriver.prototype.setWindowRect@chrome://remote/content/marionette/driver.sys.mjs:1105:15
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E despatch@chrome://remote/content/marionette/server.sys.mjs:303:40
[task 2022-10-19T21:47:23.568Z] 21:47:23 INFO - E execute@chrome://remote/content/marionette/server.sys.mjs:276:16
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - E onPacket/<@chrome://remote/content/marionette/server.sys.mjs:249:20
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - E onPacket@chrome://remote/content/marionette/server.sys.mjs:250:9
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:496:20
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - body = {'x': 100, 'y': 100}
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - err = <NoSuchWindowException http_status=404>
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - method = 'POST'
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - response = <Response status=404 error=<NoSuchWindowException http_status=404>>
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - self = <Session 82d84fc4-c106-4742-9e2a-b032b6196e10>
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - timeout = None
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - url = 'session/82d84fc4-c106-4742-9e2a-b032b6196e10/window/rect'
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:625: NoSuchWindowException
[task 2022-10-19T21:47:23.569Z] 21:47:23 INFO - TEST-INFO | expected FAIL
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/find_element_from_shadow_root/user_prompts.py | test_dismiss_and_notify[capabilities0-prompt-None] - setup error: webdriver.error.InvalidSessionIdException: invalid session id (404): Tried to run command without establishing a connection
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - args = ()
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - kwargs = {'capabilities': {'unhandledPromptBehavior': 'dismiss and notify'}, 'configuration': {'capabilities': {'moz:firefoxOpt...0.0.1', 'port': 49932, 'webdriver': {'args': ['-vv'], 'binary': 'Z:\\task_166621116678947\\fetches\\geckodriver.exe'}}}
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - request = <SubRequest 'session' for <Function test_dismiss_and_notify[capabilities0-prompt-None]>>
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x000001ADD4025940>
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - finalizer = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x000001ADD4025160>
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - def wrapper(*args, **kwargs):
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - loop = fixture_stripper.get_and_strip_from(FixtureStripper.EVENT_LOOP, kwargs)
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - request = fixture_stripper.get_and_strip_from(FixtureStripper.REQUEST, kwargs)
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - gen_obj = generator(*args, **kwargs)
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - async def setup():
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - res = await gen_obj.__anext__()
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO - return res
[task 2022-10-19T21:47:23.576Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.577Z] 21:47:23 INFO - def finalizer():
[task 2022-10-19T21:47:23.577Z] 21:47:23 INFO - """Yield again, to finalize."""
[task 2022-10-19T21:47:23.577Z] 21:47:23 INFO - async def async_finalizer():
[task 2022-10-19T21:47:23.577Z] 21:47:23 INFO - try:
[task 2022-10-19T21:47:23.577Z] 21:47:23 INFO - await gen_obj.__anext__()
[task 2022-10-19T21:47:23.577Z] 21:47:23 INFO - except StopAsyncIteration:
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - pass
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - else:
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - msg = "Async generator fixture didn't stop."
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - msg += "Yield only once."
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - raise ValueError(msg)
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - loop.run_until_complete(async_finalizer())
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - request.addfinalizer(finalizer)
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - > return loop.run_until_complete(setup())
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - args = ()
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - finalizer = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x000001ADD4025160>
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - fixture_stripper = <pytest_asyncio.plugin.FixtureStripper object at 0x000001ADD2A1BCD0>
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - gen_obj = <async_generator object session at 0x000001ADD4025A60>
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - generator = <function session at 0x000001ADD32048B0>
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - kwargs = {'capabilities': {'unhandledPromptBehavior': 'dismiss and notify'},
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - 'configuration': {'capabilities': {'moz:firefoxOptions': {'args': ['--profile',
[task 2022-10-19T21:47:23.578Z] 21:47:23 INFO - 'C:\\Users\\task_166621116678947\\AppData\\Local\\Temp\\tmpqj4jkfc2.mozrunner'],
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - 'binary': 'Z:\\task_166621116678947\\build\\application\\firefox\\firefox.exe'}},
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - 'host': '127.0.0.1',
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - 'port': 49932,
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - 'webdriver': {'args': ['-vv'],
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - 'binary': 'Z:\\task_166621116678947\\fetches\\geckodriver.exe'}}}
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - loop = <ProactorEventLoop running=False closed=False debug=False>
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - request = <SubRequest 'session' for <Function test_dismiss_and_notify[capabilities0-prompt-None]>>
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x000001ADD4025940>
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO -
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - tests\web-platform\tests\tools\third_party\pytest-asyncio\pytest_asyncio\plugin.py:127:
[task 2022-10-19T21:47:23.579Z] 21:47:23 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| Comment hidden (Intermittent Failures Robot) |
Comment 2•3 years ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit auto_nag documentation.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Comment 3•3 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
•