{"action":"created","issue":{"url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter/issues/9","repository_url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter","labels_url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter/issues/9/comments","events_url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter/issues/9/events","html_url":"https://github.com/mlison/protractor-jasmine2-screenshot-reporter/issues/9","id":67541101,"number":9,"title":"Cannot call method 'getCapabilities' of undefined","user":{"login":"hco","id":156839,"avatar_url":"https://avatars.githubusercontent.com/u/156839?v=3","gravatar_id":"","url":"https://api.github.com/users/hco","html_url":"https://github.com/hco","followers_url":"https://api.github.com/users/hco/followers","following_url":"https://api.github.com/users/hco/following{/other_user}","gists_url":"https://api.github.com/users/hco/gists{/gist_id}","starred_url":"https://api.github.com/users/hco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hco/subscriptions","organizations_url":"https://api.github.com/users/hco/orgs","repos_url":"https://api.github.com/users/hco/repos","events_url":"https://api.github.com/users/hco/events{/privacy}","received_events_url":"https://api.github.com/users/hco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-10T08:29:53Z","updated_at":"2016-03-25T08:18:09Z","closed_at":"2015-04-20T08:22:57Z","body":"I get the above error after running my tests. I'm not sure if it's a duplicate of #4, and I'm sorry if it is :)\r\nI currently have two tests, and for one of them a screenshot is being generated. Full trace below.\r\n\r\nMy protractor config looks like this:\r\n\r\n```js\r\nexports.config = {\r\n  framework: 'jasmine2',\r\n  mocks: {\r\n    default: ['Generic/Profile'],\r\n    dir: 'tests/mocks'\r\n  },\r\n  onPrepare: function() {\r\n    var HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');\r\n    jasmine.getEnv().addReporter(new HtmlScreenshotReporter({\r\n      dest: 'protractorScreenshots'\r\n    }));\r\n  },\r\n  specs: ['tests/e2e/**/*.spec.js']\r\n};\r\n```\r\n\r\n```\r\nTypeError: Cannot call method 'getCapabilities' of undefined\r\n    at /Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:430:20\r\n    at promise.ControlFlow.runInFrame_ (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)\r\n    at promise.Callback_.goog.defineClass.notify (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)\r\n    at promise.Promise.notify_ (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)\r\n    at Array.forEach (native)\r\n    at Object.goog.array.forEach (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)\r\n    at promise.Promise.notifyAll_ (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)\r\n    at goog.async.run.processWorkQueue [as _onTimeout] (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)\r\n    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)\r\nFrom: Task: WebDriver.manage().timeouts().setScriptTimeout(11000)\r\n    at [object Object].webdriver.WebDriver.schedule (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:360:15)\r\n    at [object Object].webdriver.WebDriver.Timeouts.setScriptTimeout (/Users/hco/src/foobar/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1367:23)\r\n    at [object Object].Runner.createBrowser (/Users/hco/src/foobar/node_modules/protractor/lib/runner.js:181:30)\r\n    at /Users/hco/src/foobar/node_modules/protractor/lib/runner.js:257:21\r\n    at _fulfilled (/Users/hco/src/foobar/node_modules/protractor/node_modules/q/q.js:797:54)\r\n    at self.promiseDispatch.done (/Users/hco/src/foobar/node_modules/protractor/node_modules/q/q.js:826:30)\r\n    at Promise.promise.promiseDispatch (/Users/hco/src/foobar/node_modules/protractor/node_modules/q/q.js:759:13)\r\n    at /Users/hco/src/foobar/node_modules/protractor/node_modules/q/q.js:573:44\r\n    at flush (/Users/hco/src/foobar/node_modules/protractor/node_modules/q/q.js:108:17)\r\n    at process._tickCallback (node.js:419:13)\r\n```"},"comment":{"url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter/issues/comments/201195495","html_url":"https://github.com/mlison/protractor-jasmine2-screenshot-reporter/issues/9#issuecomment-201195495","issue_url":"https://api.github.com/repos/mlison/protractor-jasmine2-screenshot-reporter/issues/9","id":201195495,"user":{"login":"Nikhil0538","id":14843585,"avatar_url":"https://avatars.githubusercontent.com/u/14843585?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikhil0538","html_url":"https://github.com/Nikhil0538","followers_url":"https://api.github.com/users/Nikhil0538/followers","following_url":"https://api.github.com/users/Nikhil0538/following{/other_user}","gists_url":"https://api.github.com/users/Nikhil0538/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikhil0538/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikhil0538/subscriptions","organizations_url":"https://api.github.com/users/Nikhil0538/orgs","repos_url":"https://api.github.com/users/Nikhil0538/repos","events_url":"https://api.github.com/users/Nikhil0538/events{/privacy}","received_events_url":"https://api.github.com/users/Nikhil0538/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T08:18:09Z","updated_at":"2016-03-25T08:18:09Z","body":"What's the solution for this?"}}