TrevorSundberg / puppeteer-in-electron

Use puppeteer to test and control your electron application.
MIT License
342 stars 51 forks source link

The parameter 'app' was not passed in. This may indicate that you are running in node rather than electron. #38

Closed fdciabdul closed 3 years ago

fdciabdul commented 3 years ago

(node:8596) UnhandledPromiseRejectionWarning: Error: The parameter 'app' was not passed in. This may indicate that you are running in node rather than electron.

idk why , but just trying with your example code , and getting error like this

How to fix it ?

TrevorSundberg commented 3 years ago

Are you running it with electron?

fdciabdul commented 3 years ago

Are you running it with electron?

what do you means ? i'm running with windows terminal

TrevorSundberg commented 3 years ago

You need to run electron instead of node js.