These are chat archives for rosshinkley/nightmare

20th
Apr 2017
johnferro
@johnferro
Apr 20 2017 01:56
@amrutharamesh nightmare includes a default preload script so you don't have to include it manually. You can choose to use a custom one instead but parts of it are required (https://github.com/segmentio/nightmare#custom-preload-script)
Ilya Borovitinov
@icehaunter
Apr 20 2017 07:13
Hey guys
Anyone here knows how to fake navigator object in preload script?
Davide De Gennaro
@dege88
Apr 20 2017 10:51
Hello. Do anyone know if it's possible for Nightmare to access network infos like the ones chrome provides?
I'm particularly interested in the response of one particular url type
I've tryed to look in the electron documentation for the events ( https://electron.atom.io/docs/api/web-contents/#instance-events ) but I'm starting to think that it's the wrong place to look at.
Anyone has some tips?
johnferro
@johnferro
Apr 20 2017 13:59
@dege88 If you run nightmare with DEBUG environment variable set to nightmare:log* you will see some useful logging information. I believe the did-get-response-details even captures a good amount of that network information
Davide De Gennaro
@dege88
Apr 20 2017 14:09
Thanks @johnferro unfortunately I also need the data contained in the response, I'm gonna try to follow this method to intercept all XHR requests and filter the one I really need to intercept: http://stackoverflow.com/a/10796951/2105507