{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/protractor-retry/issues/18","repository_url":"https://api.github.com/repos/yahoo/protractor-retry","labels_url":"https://api.github.com/repos/yahoo/protractor-retry/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/protractor-retry/issues/18/comments","events_url":"https://api.github.com/repos/yahoo/protractor-retry/issues/18/events","html_url":"https://github.com/yahoo/protractor-retry/issues/18","id":292362304,"node_id":"MDU6SXNzdWUyOTIzNjIzMDQ=","number":18,"title":"Cannot read property 'specs' of undefined","user":{"login":"ammargalal","id":29892845,"node_id":"MDQ6VXNlcjI5ODkyODQ1","avatar_url":"https://avatars1.githubusercontent.com/u/29892845?v=4","gravatar_id":"","url":"https://api.github.com/users/ammargalal","html_url":"https://github.com/ammargalal","followers_url":"https://api.github.com/users/ammargalal/followers","following_url":"https://api.github.com/users/ammargalal/following{/other_user}","gists_url":"https://api.github.com/users/ammargalal/gists{/gist_id}","starred_url":"https://api.github.com/users/ammargalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammargalal/subscriptions","organizations_url":"https://api.github.com/users/ammargalal/orgs","repos_url":"https://api.github.com/users/ammargalal/repos","events_url":"https://api.github.com/users/ammargalal/events{/privacy}","received_events_url":"https://api.github.com/users/ammargalal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-29T10:53:07Z","updated_at":"2018-11-01T13:29:40Z","closed_at":null,"author_association":"NONE","body":"Hi while running my configuration file after all spec is executed i get this error message i.e.\r\n\r\n[16:08:54] I/local - Shutting down selenium standalone server.\r\n[16:08:54] E/launcher - Error: TypeError: Cannot read property 'specs' of undefined\r\n    at prepareData (\\node_modules\\protractor-retry\\lib\\retry.js:170:48)\r\n    at writeToFile (\\node_modules\\protractor-retry\\lib\\retry.js:154:15)\r\n    at Object.onCleanUp (\\node_modules\\protractor-retry\\lib\\retry.js:117:9)\r\n    at onCleanUp (\\protractor-conf.js:104:15)\r\n    at q_1.Promise (protractor\\built\\util.js:46:49)\r\n    at Function.promise (node_modules\\q\\q.js:682:9)\r\n    at Object.runFilenameOrFn_ (\\protractor\\built\\util.js:38:16)\r\n    at Runner.exit_ (node_modules\\protractor\\built\\runner.js:35:27)\r\n    at q.then.then.then.then.then.then.then.then.then (node_modules\\protractor\\built\\runner.js:437:25)\r\n    at _fulfilled (node_modules\\protractor\\node_modules\\q\\q.js:834:54)\r\nClosing report\r\n[16:08:54] E/launcher - Process exited with error code 100"},"comment":{"url":"https://api.github.com/repos/yahoo/protractor-retry/issues/comments/435041145","html_url":"https://github.com/yahoo/protractor-retry/issues/18#issuecomment-435041145","issue_url":"https://api.github.com/repos/yahoo/protractor-retry/issues/18","id":435041145,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTA0MTE0NQ==","user":{"login":"tymfear","id":6705391,"node_id":"MDQ6VXNlcjY3MDUzOTE=","avatar_url":"https://avatars0.githubusercontent.com/u/6705391?v=4","gravatar_id":"","url":"https://api.github.com/users/tymfear","html_url":"https://github.com/tymfear","followers_url":"https://api.github.com/users/tymfear/followers","following_url":"https://api.github.com/users/tymfear/following{/other_user}","gists_url":"https://api.github.com/users/tymfear/gists{/gist_id}","starred_url":"https://api.github.com/users/tymfear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tymfear/subscriptions","organizations_url":"https://api.github.com/users/tymfear/orgs","repos_url":"https://api.github.com/users/tymfear/repos","events_url":"https://api.github.com/users/tymfear/events{/privacy}","received_events_url":"https://api.github.com/users/tymfear/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T13:29:40Z","updated_at":"2018-11-01T13:29:40Z","author_association":"NONE","body":"Looks like you restart your browser at some point. When the browser is restarted the `browser.currentSpec` object is removed (looks like some issue with protractor).\r\nMy workaround was the following\r\n```typescript\r\nexport async function restartBrowser(browserInstance: ProtractorBrowser = browser,\r\n                                     waitForAngularEnabled: boolean = false): Promise<ProtractorBrowser> {\r\n\r\n    const currentSpec: any = browser.currentSpec;\r\n\r\n    await browser.restart();\r\n    browser.currentSpec = currentSpec;\r\n    await browser.waitForAngularEnabled(waitForAngularEnabled);\r\n\r\n    return browserInstance;\r\n}\r\n``` "}}
{"actor":{"display_login":"tymfear"}}