{"action":"created","issue":{"url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/issues/21","labels_url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/issues/21/comments","events_url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/issues/21/events","html_url":"https://github.com/AndrewKeig/protractor-cucumber/pull/21","id":99800821,"number":21,"title":"Corrected bug returning an empty object for the browser","user":{"login":"laukev7","id":5855845,"avatar_url":"https://avatars.githubusercontent.com/u/5855845?v=3","gravatar_id":"","url":"https://api.github.com/users/laukev7","html_url":"https://github.com/laukev7","followers_url":"https://api.github.com/users/laukev7/followers","following_url":"https://api.github.com/users/laukev7/following{/other_user}","gists_url":"https://api.github.com/users/laukev7/gists{/gist_id}","starred_url":"https://api.github.com/users/laukev7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laukev7/subscriptions","organizations_url":"https://api.github.com/users/laukev7/orgs","repos_url":"https://api.github.com/users/laukev7/repos","events_url":"https://api.github.com/users/laukev7/events{/privacy}","received_events_url":"https://api.github.com/users/laukev7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-08T13:04:38Z","updated_at":"2015-09-06T16:25:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/pulls/21","html_url":"https://github.com/AndrewKeig/protractor-cucumber/pull/21","diff_url":"https://github.com/AndrewKeig/protractor-cucumber/pull/21.diff","patch_url":"https://github.com/AndrewKeig/protractor-cucumber/pull/21.patch"},"body":"Running cucumber.js was returning the following error when I was running the sample code:\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nTypeError: Target browser must be a string, but is <object>; did you forget to call forBrowser()?\r\n  at TypeError (<anonymous>:null:null)\r\n  at [object Object].Builder.build (/home/kev/node_modules/selenium-webdriver/builder.js:407:11)\r\n  at new World (/home/kev/node_modules/protractor-cucumber/lib/index.js:17:6)\r\n  at Object.<anonymous> (/usr/lib/node_modules/cucumber/bin/cucumber.js:4:5)\r\n  at Module._compile (module.js:456:26)\r\n  at Object.Module._extensions..js (module.js:474:10)\r\n  at Module.load (module.js:356:32)\r\n  at Function.Module._load (module.js:312:12)\r\n  at Function.Module.runMain (module.js:497:10)\r\n  at startup (node.js:119:16)\r\n  at node.js:929:3\r\n\r\nIt turned out that the Builder constructor in Webdriver did not (or no longer) accepted parameters, but the withCapabilities() function did."},"comment":{"url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/issues/comments/138097685","html_url":"https://github.com/AndrewKeig/protractor-cucumber/pull/21#issuecomment-138097685","issue_url":"https://api.github.com/repos/AndrewKeig/protractor-cucumber/issues/21","id":138097685,"user":{"login":"paolomoretti","id":3512201,"avatar_url":"https://avatars.githubusercontent.com/u/3512201?v=3","gravatar_id":"","url":"https://api.github.com/users/paolomoretti","html_url":"https://github.com/paolomoretti","followers_url":"https://api.github.com/users/paolomoretti/followers","following_url":"https://api.github.com/users/paolomoretti/following{/other_user}","gists_url":"https://api.github.com/users/paolomoretti/gists{/gist_id}","starred_url":"https://api.github.com/users/paolomoretti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolomoretti/subscriptions","organizations_url":"https://api.github.com/users/paolomoretti/orgs","repos_url":"https://api.github.com/users/paolomoretti/repos","events_url":"https://api.github.com/users/paolomoretti/events{/privacy}","received_events_url":"https://api.github.com/users/paolomoretti/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T16:25:12Z","updated_at":"2015-09-06T16:25:12Z","body":"I can confirm it looks like running properly with this fix :+1: "}}