Skip to content

Getting a 'BrowserAuthError: crypto_nonexistent: The crypto object or function is not available' error when using testcafe with firefox #8391

@Christopher-C-Robinson

Description

@Christopher-C-Robinson

What is your Scenario?

When navigating to https://formspro.omnibyte.com/automation/nightly with firefox through testcafe I’m getting the error:

Image

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.png

Screenshots

Image

Image

Steps to Reproduce

  1. use firefox to go to the site listed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPE: bugThe described behavior is considered as wrong (bug).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions