Created
July 4, 2016 13:07
-
-
Save antonellopasella/e5f615eeba8e38e940319568352f292b to your computer and use it in GitHub Desktop.
Demo NightmareJS EMBED suppoer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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