karma-runner / karma-phantomjs-launcher

A Karma plugin. Launcher for PhantomJS.
MIT License
281 stars 121 forks source link

Can't send data from PhantomJS to any callback under NodeJS process context #202

Open evegorov opened 7 years ago

evegorov commented 7 years ago

I can register a callbacks onPageCreated / newPage.onCallback and then use window.callPhantom() to transfer some data from Phantom's javascript page to karma.config.js but a callback functions onCallback (the same for onPageCreated) are called in context of PhantomJS and can not access e.g. to file system.

The task is to create another callback e.g. onBrowserLogNodeContext which can be called on stdout 'data' events by NodeJS parent process.