mardi 11 juillet 2017

Load html from file to nightmar.js

I could not find any documentation on the following:

With nightmare.js normally I do:

let nightmare = Nightmare()
return nightmare
  .goto('www.example.com')
  .evaluate(()=>{ 
  // ...

I try to test my code isolated, without any internet connection. Is it possible to load html into nightmare instead of the goto(url).

Aucun commentaire:

Enregistrer un commentaire