These are chat archives for rosshinkley/nightmare

8th
Oct 2016
Tim Wisniewski
@timwis
Oct 08 2016 22:29
Morning folks! Is it possible to .evaluate() a page, and then .goto() another page and use the data from the evaluation? Or do I have to disconnect and start a new nightmare instance inside the .then() callback?
Tim Wisniewski
@timwis
Oct 08 2016 22:38
er, it's definitely not morning, not sure why i said morning
Ross Hinkley
@rosshinkley
Oct 08 2016 23:32
it's morning somewhere ;)
you could return data from the .evaluate() call and then send it via parameters to the page you .goto()
i'd think you'd have to do that inside of a .then() unless i'm not thinking about this right...
@timwis