-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Firefox browser never connected (Cannot read properties of undefined (reading 'browsingContextGetTree')) #31381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @CastiGiuseppe. Thank you for opening an issue. I tried to reproduce this with https://github.com/AtofStryker/cypress_issue_31381 but was unable to reproduce. The only difference is I am on Windows 10 and not 11. Are you able to give further instruction on how to reproduce the error? |
Like @AtofStryker I was not able to reproduce this issue either and I am using Windows 11 24H2. Could you try the following test to see if it fails for you? git clone https://github.com/cypress-io/github-action
cd github-action
cd examples/browser
npm ci
npm run cy:run:firefox LogsHere are the logs showing it working:
|
@MikeMcC399 I tried what you explained and it fails again. Here is the log I have. I don't know if it can help you.
|
Thank you for testing with the example! This works for me on 2 different Windows 11 24H2 systems, so if it fails for you, then there is something different on your system / network. Did you try uninstalling and re-installing Firefox? Do you have access to a different Windows 11 system to try on that one? Are you on a restricted corporate network? |
I'm working on a restricted corporate network. I will try uninstalling and re-installing Firefox. I will keep you inform. Thanks |
You may need to work with your network admin on this point and I'm wondering if Windows group policies may be causing your issue. I don't have in-depth experience with this, however you might want to try running: GPRESULT /R from a Windows |
I re-tried uninstalling and re-installing Firefox and I still have the issue. |
Re-installing was suggested as a precautionary measure. The outstanding points are:
|
I did several tries (downgrading cypress & firefox version). Fortunately it's working with cypress 14.2.1 & Firefox 137 Thanks for your time and help. |
It's good to hear that you have Cypress and Firefox working now. So thank you for reporting back! We don't have an explanation why it wasn't working before though it seems. If you don't need any more help, then I suggest that you close this issue ⬇ |
Also seeing this failure using the latest |
|
Thanks for this suggestion, this is very helpful. I've attempted to make Setting Note that when running The tldr; is that I think that Webdriver doesn't start, judging by how cypress/packages/server/lib/browsers/firefox.ts Lines 688 to 690 in 83e0d3c
There's no failure logging to indicate such condition though, so I'm a bit puzzled. Could webdriver have started but be hung, waiting for a network timeout to occur? |
I can't answer this question, sorry! If you are still having problems, you have re-tested with the latest version Cypress 14.3.0 and you believe this could be a bug in Cypress, then I would recommend that you open a new issue. I would not expect the Cypress.io team to follow up on this closed issue. |
Having absolutely no insight into what is (or rather isn't) happening as verbose logging doesn't provide any details, I started bisecting Cypress releases. This broke in Cypress 13.5.1, so it's either #30250 or #30324 that broke this. Since these were released together I don't have insight into which of the two actually breaks stuff, although I believe it's the Without further debugging insights I cannot provide addition information, having attempted the following:
The latter two were extracted from webdriver code but didn't result in additional logging. Note that the |
Looking through I think this explains why there's no further logging, as the last message I observe is which executes after |
More updates on the update; I glanced over the following logic in which avoids an ad-hoc download of a Puppeteer browser when the browser is already present. This is the case with Then I found: which exposes the relevance of the |
Current behavior
I'm trying to run tests on Firefox 136.0.3 with cypress version 14.2.0 on windows machine.
I have this error :
Desired behavior
Cypress should run tests on firefox.
Test code to reproduce
N/A
Cypress Version
14.2.0
Node version
22.12.0
Operating System
Windows 11 Entreprise 24H2
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: