Graviton
Graviton is a headless browser based on Electron.
It's very similar to Nightmare, but evaluated directly by electron, without process fork and ipc communication.
Because graviton work directly over electron, this allows you to use all features of electron.
For example: listen all available callbacks, use events in callback, manipulate with WindowBrowser, WebContents, and other electron api.
Adding new features has become much easier.
I tried replicate Nightmare API, for simple and fast usage by users which have experience with Nightmare.
If anybody want to help identical copy Nightmare API, pull request welcome.
How to use
npm install electron-prebuild
npm install graviton
./node_modules/.bin/electron test.js
Example search in yahoo (like Nightmare yahoo example)
var Graviton = ; var vo = ; { if err throw err; }; { var graviton = Graviton; graviton; gravitontype'#uh-search-box' 'github nightmare'; graviton; graviton; console; graviton; }
Example
var Graviton = ; var vo = ; { if err throw err; }; const GITHUB_LOGIN = '{SOME_LOGIN}'; const GITHUB_PASS = '{SOME_PASS}'; { var graviton = Graviton; try graviton; graviton; graviton; graviton; graviton; console; catch e console; graviton; }