electron-userland / spectron

DEPRECATED: 🔎 Test Electron apps using ChromeDriver
http://electronjs.org/spectron
MIT License
1.68k stars 229 forks source link

Spectron application opening multiple instances #619

Open ThummalaJanardhanReddy opened 4 years ago

ThummalaJanardhanReddy commented 4 years ago

I'm trying to start spectron application in a separate class function. Application starts multiple times every 30 secs. I'm not using any Framework like mocha or anything. In a plain javascript file I'm trying to access spectron and execute all api's. Can anyone please help me how to resolve this.

ThummalaJanardhanReddy commented 4 years ago

So is it mandatory to use any framework like mocha ?

ThummalaJanardhanReddy commented 4 years ago

Is there any limitation to use spectron? Can I start the application in a separate class function ? Please clarify.

ThummalaJanardhanReddy commented 4 years ago

Can anyone please respond ?

XRenSiu commented 3 years ago

Can you provider any more information such as your AppConstructorOptions? Maybe you miss chromeDriverArgs: ['remote-debugging-port=9222'].