Remote-debugging-port of Electron is always random when launch the Electron app via Spectron.
I wish to use Chrome lighthouse CLI to work with Spectron. Chrome lighthouse can access Electron via remote debugging port.
I want to start the application by Spectron, and then use lighthouse to measure performance of some components.
However, I cannot specify the remote debugging port for Electron. It looks like the port is random.
Remote-debugging-port of Electron is always random when launch the Electron app via Spectron.
I wish to use Chrome lighthouse CLI to work with Spectron. Chrome lighthouse can access Electron via remote debugging port. I want to start the application by Spectron, and then use lighthouse to measure performance of some components. However, I cannot specify the remote debugging port for Electron. It looks like the port is random.
Here is my code: