-
Notifications
You must be signed in to change notification settings - Fork 675
Getting a 'BrowserAuthError: crypto_nonexistent: The crypto object or function is not available' error when using testcafe with firefox #8391
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
Not sure if related to #8368 or not. That was also a Firefox only issue that was recently fixed. |
When navigating to the URL in a regular Firefox browser without testcafe, there are no issues. |
Updated Context:This issue started occurring after a recent security update was merged that introduced MFA enforcement, password expiration handling, and Microsoft account login integration to the site with the provided URL. Since the error ( This has been tested on TestCafe 3.7.2 with Firefox 135.0 on Windows 11. Other browsers (Chrome, Edge) are unaffected. Would appreciate insights on whether TestCafe's Firefox runner might be missing necessary Web Crypto API support or if there are known issues with recent Firefox updates affecting automated test execution. Let me know if any additional logs or debugging details would help. |
Hello, I navigated to your page with Firefox and did not manage to reproduce the issue. Please create a reproducible minimal example so that our team can help you investigate this issue. |
Okay! I'll try to creat that next week! |
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone. |
Here is a reproducible minimal example. I have a file with a fixture, a test of just navigating to a couple sites and making sure an element is there. This seems to not be just a firefox issue as I've recently tried in edge as well. Works as soon as I take off --disable-native-automation flag: DevExpresstestcafe-issue-8391.zip In there has the exact command in the text file, the file with the test, and the testcafe.rc file in the project. Let me know if there is anything else you need @Bayheck |
Sorry about that. I think this is better! |
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news. |
What is your Scenario?
When navigating to https://formspro.omnibyte.com/automation/nightly with firefox through testcafe I’m getting the error:
I know this says going to localhost:4200 but I get the same error when navigating to the site mentioned. Works in Edge and Chrome fine.
What is the Current behavior?
BrowserAuthError: crypto_nonexistent: Thy crypto object or function is not available
What is the Expected behavior?
Should be able to get to the site just like the other browsers can.
What is the public URL of the test page? (attach your complete example)
https://formspro.omnibyte.com/automation/nightly
What is your TestCafe test code?
test('Test Case: ##### - NEW', async t => {
await t.useRole(TestCafe);
});
// the role just goes to
https://formspro.omnibyte.com/automation/nightly
and tries to login. so just need to nav to.Your complete configuration file
{
"browsers": ["chrome:headless:emulation:width=1920;height=1080 --start-fullscreen;"],
"reporter": [
{
"name": "spec"
},
{
"name": "nunit3",
"output": "results/reports/report.xml"
}
],
"screenshots": {
"takeOnFails": true,
"path": "results/",
"pathPattern": "${TIME}/${TEST_INDEX}/${FILE_INDEX}.png"
},
"disablePageCaching": true,
"stopOnFirstFail": false,
"skipJsErrors": true,
"skipUncaughtErrors": true,
"selectorTimeout": 5000,
"assertionTimeout": 5000,
"pageLoadTimeout": 120000,
"speed": 1,
"cache": false
}
Your complete test report
1887 | throw new Error('Login process timed out'); ⠀ 1888 | } ⠀ 1889 | ⠀ 1890 | /** ⠀ 1891 | * Scans the form and performs validation checks. ⠀ 1892 | */ ⠀ at Admin. (C:\Code\FP\Test-Automation\FormsPro\admin-variables.ts:1887:15) at fulfilled (C:\Code\FP\Test-Automation\FormsPro\admin-variables.ts:5:58)]]> C:\Code\FP\Test-Automation\results\11-42-38\1\errors\1.pngScreenshots
Steps to Reproduce
TestCafe version
3.7.2
Node.js version
v20.18.2
Command-line arguments
-L
Browser name(s) and version(s)
Firefox 135.0
Platform(s) and version(s)
Windows 11
Other
No response
The text was updated successfully, but these errors were encountered: