Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antonellopasella/e5f615eeba8e38e940319568352f292b to your computer and use it in GitHub Desktop.
Save antonellopasella/e5f615eeba8e38e940319568352f292b to your computer and use it in GitHub Desktop.
Demo NightmareJS EMBED suppoer
var Nightmare = require('nightmare');
var nightmare = Nightmare({
show: true,
openDevTools: true,
'webPreferences': {
'webSecurity': false
}
});
//
nightmare
.goto('https://cdn.rawgit.com/anonymous/8257b5aa13a044915d86fa2a0162eb36/raw/9110987ad1300b149415352b1c8e42b899a15f9a/index.html')
.evaluate(function(){
})
.then(function(){
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment