{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/957","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/957/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/957/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/957/events","html_url":"https://github.com/segmentio/nightmare/issues/957","id":200895317,"number":957,"title":"How to get all network requests","user":{"login":"jineshshah36","id":6501089,"avatar_url":"https://avatars.githubusercontent.com/u/6501089?v=3","gravatar_id":"","url":"https://api.github.com/users/jineshshah36","html_url":"https://github.com/jineshshah36","followers_url":"https://api.github.com/users/jineshshah36/followers","following_url":"https://api.github.com/users/jineshshah36/following{/other_user}","gists_url":"https://api.github.com/users/jineshshah36/gists{/gist_id}","starred_url":"https://api.github.com/users/jineshshah36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jineshshah36/subscriptions","organizations_url":"https://api.github.com/users/jineshshah36/orgs","repos_url":"https://api.github.com/users/jineshshah36/repos","events_url":"https://api.github.com/users/jineshshah36/events{/privacy}","received_events_url":"https://api.github.com/users/jineshshah36/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-15T21:21:23Z","updated_at":"2017-02-05T01:37:24Z","closed_at":null,"body":"I want to get a list of all network requests the page makes, specifically a list of all the images that are downloaded. Here is my attempt at getting network request data, but I'm very lost.\r\n\r\n```\r\nconst Nightmare = require('nightmare')\r\nconst nightmare = Nightmare({ show: false })\r\n\r\nNightmare.action('testAction', function(name, options, parent, win, renderer, done) {\r\n    parent.respondTo('testAction', function(done) {\r\n      win.WebRequest.onCompleted(filter, (details) => {\r\n        done(details)\r\n      })\r\n    })\r\n    done()\r\n  }, function(done) { this.child.call('testAction', done) })\r\n\r\nnightmare\r\n  .goto('https://www.everlane.com/collections/womens-newest-arrivals/products/womens-penny-loafer-black')\r\n  .testAction()\r\n  .end()\r\n  .then(result => {\r\n    console.log(result)\r\n  })\r\n  .catch(error => {\r\n    console.error('Search failed:', error)\r\n  })\r\n```"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/277491105","html_url":"https://github.com/segmentio/nightmare/issues/957#issuecomment-277491105","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/957","id":277491105,"user":{"login":"d3ce1t","id":3706385,"avatar_url":"https://avatars.githubusercontent.com/u/3706385?v=3","gravatar_id":"","url":"https://api.github.com/users/d3ce1t","html_url":"https://github.com/d3ce1t","followers_url":"https://api.github.com/users/d3ce1t/followers","following_url":"https://api.github.com/users/d3ce1t/following{/other_user}","gists_url":"https://api.github.com/users/d3ce1t/gists{/gist_id}","starred_url":"https://api.github.com/users/d3ce1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3ce1t/subscriptions","organizations_url":"https://api.github.com/users/d3ce1t/orgs","repos_url":"https://api.github.com/users/d3ce1t/repos","events_url":"https://api.github.com/users/d3ce1t/events{/privacy}","received_events_url":"https://api.github.com/users/d3ce1t/received_events","type":"User","site_admin":false},"created_at":"2017-02-05T01:37:24Z","updated_at":"2017-02-05T01:37:24Z","body":"I don't know about the requests. But you can log all of the responses. I have just commented that in https://github.com/segmentio/nightmare/issues/784#issuecomment-277490918."}}
{"actor":{"display_login":"d3ce1t"}}