Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

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

Open
evegorov opened this issue Jun 21, 2017 · 0 comments

Comments

@evegorov
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant