DevExpress / testcafe-browser-provider-electron

This is the Electron browser provider plugin for TestCafe.
https://testcafe.io
MIT License
49 stars 30 forks source link

ERROR The Electron 18.3.5 / Windows 10 browser disconnected. If you did not close the browser yourself, browser performance or network issues may be at fault. #91

Closed 2BC-Wasabi closed 2 years ago

2BC-Wasabi commented 2 years ago

hello there, i get this issue when i run a test ERROR The Electron 18.3.5 / Windows 10 browser disconnected. If you did not close the browser yourself, browser performance or network issues may be at fault.

my setup is as follows,

i load a welcome page where the user selects options, then launches the app.

my test works fine until the launch, when i click the launch button i load another url using
myappWindow.loadURL(resolveHtmlPath('myapp.html'));

but then test cafe just hangs until i receive that error i tried with both enableNavigateEvents: true and enableNavigateEvents: false

my .testcafe-electron-rc.js

  const getAppName = () => {
    const extensions = {
      win32: 'myapp.exe',
      linux: 'myapp.AppImage',
      darwin: 'myapp.dmg'
    }
    return extensions[process.platform]
  }

  module.exports = {
    mainWindowUrl: "C:\\myapp\\resources\\app.asar\\dist\\renderer\\index.html",
    electronPath:  `C:\\myapp\\myapp.exe`,
    enableNavigateEvents: true
  }
Dmitry-Ostashev commented 2 years ago

Thank you for your report. I reproduced the issue on my side using Electron 16. Since it seems similar to the issue in https://github.com/DevExpress/testcafe/issues/4701, let's continue our discussion there.