Setting up testcafe on a new version of SUSE OS. Running the testcafe getting started a test on SUSE using firefox:headless I get a long pause then the error :
testcafe firefox:headless test1.js --reporter=xunit
"ERROR The Firefox 66.0.0 / Linux 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues."
Testcafe version: 0.23.3
Linux version: NAME="SUSE" VERSION="12 SP4" uname -a = "4.12.14-94.41-default"
Firefox version: 66.0.2
node.js version: v10.15.3
The same works fine with firefox if I don't run headless, the tests execute successfully without any error if I point the DISPLAY to ViewNow which allows X windows to DISPLAY the browser running on my PC, but I need headless for our automation framework.
Following the instructions on https://hacks.mozilla.org/2017/12/using-headless-mode-in-firefox/ I can also use
firefox -screenshot http://www.microfocus.com
which runs the browser in headless mode to access a Web page and captures a .png which shows the connection is successful so headless firefox can get to Web pages.
I have an older version of SUSE, testcafe, firefox which runs headless and works, so I know this used to work: Test cafe version: testcafe -v 0.18.6
Linux version: NAME="SUSE" VERSION="12 SP2" uname -a = "4.4.21-69-default"
Firefox version: 58.0.2
node.js version: v8.9.4
Expected result: Running tests in: - Firefox 66.0.0 / Linux 0.0.0
Getting Started ✓ My first test
1 passed (1s)