electron-userland / spectron

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

about the example of Via Spectron configuration #221

Open Maybrittnelson opened 7 years ago

Maybrittnelson commented 7 years ago

Actual behavior

when i use path to main.js ,nothing happened.when use .exe, it run two cmd and the .exe run but nothing in the index.html

How to reproduce

123

ghost commented 6 years ago

Hi @Maybrittnelson, have you found a solution yet? if not, the path attribute basically sets the path to the executable. In this case, the app is testing a MacOS application named 'MyApp'. If you are testing your main.js file, you should set it as such


var app = new Application({
  path: 'path/to/electron'
  args: ['path/to/main.js']
})