vendredi 4 décembre 2020

Electron End-To-End Testing: enable remote debugging

I am using the CapacitorJS-Runtime, which means that I cannot simply add tags to the electron start script (I do not even know where it is as it is not in .bin/electron.cmd - there is only capacitor.cmd which handles this but does not accept the same options). How can one activate remote debugging for Electron inside an executed Script-Block?

require('electron').remote.app.commandLine.appendSwitch('remote-debugging-port', '40500');

The above block apparently has to be executed in the main thread - how could this be done on electron?

I have also tried using Spectron which could not bind due to me using the Capacitor Community-Plugin for Electron...

Aucun commentaire:

Enregistrer un commentaire