-
Notifications
You must be signed in to change notification settings - Fork 675
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
Unable to run native tests in chrome/edge #8350
Comments
Hello @emmabDF, I couldn't reproduce the issue. Without accurately reproducing the issue, it's difficult to determine exactly what goes wrong. Could you please try running TestCafe with a debug log? To enable the debug log, you can do the following:
Before running TestCafe, set the Please refer to the following help topic for details: https://testcafe.io/documentation/402636/faq/general-info#related-questions |
I am seeing the same issue Error: connect ECONNREFUSED ::1:60899 The test then fails with a selector not found error even though it never connected to the website I've doubled checked my hosts file and both localhost v4 and v6 are defined. I have to request special permission to run anything as admin, but I will try and run with debug turned on and see if I can collect more information. Other details:
Following the FAQ, I created a simple test - same results as above import { t, fixture, test, Selector } from 'testcafe'; const page = 'https://devexpress.github.io/testcafe/example/'; fixture('TestCafe'); test.page(page)('TestCafe Example Test for Troubleshooting', async (tn) => { Update: I cannot test on MacOS, but it appears Macs are okay (most of our automation engineers run on Macs) More Updates: My fear this is a' down deep in the weeds' localhost issue :-( |
Hello everyone, We are investigating this issue to identify its potential cause. Unfortunately, we haven't been able to reproduce it so far. Could you please reinstall your browser and test this again? If you could share any additional information that might help us replicate the issue, it would be greatly appreciated. Thank you for your understanding. |
Heya @PavelMor25 thanks for suggesting that, and apologies for not responding for a while, I have been on holiday from work. Some things we have tried with no luck:
We also have done a wireshark capture and given this to our IT team who have seen nothing unusual. The IT team thought the problem is either Testcafe cant open chrome processes, or has opened them but the ports don't exist |
@emmabDF |
What is your Scenario?
Run any tests on testcafe
What is the Current behavior?
Testcafe fails to open with error
ERROR Unable to open the "chrome:" browser due to the following error:
Error: connect ECONNREFUSED ::1:54735
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)
What is the Expected behavior?
Testcafe opens and runs test
What is the public URL of the test page? (attach your complete example)
N/A any URL
What is your TestCafe test code?
import { Selector, t } from 'testcafe';
fixture('Basic testcafe example')
.page('www.example.com');
test('Do anything', async t => {
await t.click(Selector('a'))
});
Your complete configuration file
n/a
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
1.Run any testcafe test
TestCafe version
3.7.0
Node.js version
22.11.0
Command-line arguments
npx testcafe chrome test\basicTest.js
Browser name(s) and version(s)
chrome 131.0.6778.109
Platform(s) and version(s)
Windows 11 Pro
Other
This is happening for about 50% of our team, with some users experiencing the issue & others not - there does not seem to be any correlation with node/chrome versions and having/not having this issue.
Those experiencing the issue can run tests in testcafe if using --disable-native-automation
This issue happens in edge and chrome, headed or headless.
This issue does not happen in firefox.
This seems to have started today.
Any further information I can provide, please let me know.
The text was updated successfully, but these errors were encountered: