{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/413","repository_url":"https://api.github.com/repos/Codeception/CodeceptJS","labels_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/413/comments","events_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/413/events","html_url":"https://github.com/Codeception/CodeceptJS/issues/413","id":206605470,"number":413,"title":"Capture the network activity of an http request in HAR format using CodeceptJS","user":{"login":"magimenon","id":324540,"avatar_url":"https://avatars.githubusercontent.com/u/324540?v=3","gravatar_id":"","url":"https://api.github.com/users/magimenon","html_url":"https://github.com/magimenon","followers_url":"https://api.github.com/users/magimenon/followers","following_url":"https://api.github.com/users/magimenon/following{/other_user}","gists_url":"https://api.github.com/users/magimenon/gists{/gist_id}","starred_url":"https://api.github.com/users/magimenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magimenon/subscriptions","organizations_url":"https://api.github.com/users/magimenon/orgs","repos_url":"https://api.github.com/users/magimenon/repos","events_url":"https://api.github.com/users/magimenon/events{/privacy}","received_events_url":"https://api.github.com/users/magimenon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-09T19:29:56Z","updated_at":"2017-02-09T21:16:20Z","closed_at":null,"body":"#### What are you trying to achieve?\r\nI'm working on getting the HAR report for the webpage I'm testing. This works with the help of \"nightmare-har-plugin\" using NightmareJS. I'm trying to use codeceptJS and looks like codeceptJS doesn't have the option to get the HAR. Is it something which the team will add in the near future?\r\n\r\nBelow is my code.\r\nScenario(\"Functional Test HomePage\", function () {\r\n\r\n\t har.install(Nightmare);\r\n\t var nightmare = Nightmare(Object.assign(har.getDevtoolsOptions(), options));\r\n\t nightmare.waitForDevtools()\r\n\t\t .goto(\"http://www.google.com\")\r\n\t\t .getHAR()\r\n\t\t .end()\r\n\t\t .then(function (result) {\r\n\t\t\t console.log(result)\r\n\t\t })\r\n\t\t .catch(function (error) {\r\n\t\t    console.error(error);\r\n\t    });\r\n });\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/comments/278776127","html_url":"https://github.com/Codeception/CodeceptJS/issues/413#issuecomment-278776127","issue_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/413","id":278776127,"user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"created_at":"2017-02-09T21:16:20Z","updated_at":"2017-02-09T21:16:20Z","body":"> Is it something which the team will add in the near future?\r\n\r\nActyally not, but you can help us by making a Pull Request. To be honest I don't even know anything about the HAR format and its use ceases for testing.\r\nI think you can create a custom Helper which extends from Nigthmare and implement that method there. \r\n\r\nFrom what I see the problem here is to provide a way to install Nightmare plugins withink CodeceptJs"}}
{"actor":{"display_login":"DavertMik"}}