{"action":"opened","issue":{"url":"https://api.github.com/repos/qa/arquillian-phantom-driver/issues/16","labels_url":"https://api.github.com/repos/qa/arquillian-phantom-driver/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/qa/arquillian-phantom-driver/issues/16/comments","events_url":"https://api.github.com/repos/qa/arquillian-phantom-driver/issues/16/events","html_url":"https://github.com/qa/arquillian-phantom-driver/issues/16","id":67269377,"number":16,"title":"instructions on README may not always work","user":{"login":"abrin","id":192686,"avatar_url":"https://avatars.githubusercontent.com/u/192686?v=3","gravatar_id":"","url":"https://api.github.com/users/abrin","html_url":"https://github.com/abrin","followers_url":"https://api.github.com/users/abrin/followers","following_url":"https://api.github.com/users/abrin/following{/other_user}","gists_url":"https://api.github.com/users/abrin/gists{/gist_id}","starred_url":"https://api.github.com/users/abrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrin/subscriptions","organizations_url":"https://api.github.com/users/abrin/orgs","repos_url":"https://api.github.com/users/abrin/repos","events_url":"https://api.github.com/users/abrin/events{/privacy}","received_events_url":"https://api.github.com/users/abrin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T03:03:29Z","updated_at":"2015-04-09T03:03:29Z","closed_at":null,"body":"I spent quite a while debugging an issue when trying to pass parameters into phantomJS.   The root of the issue is that this didn't work:\r\n````\r\nWebDriver driver = new PhantomJSDriver(\r\n        ResolvingPhantomJSDriverService.createDefaultService(),\r\n        capabilities);\r\n````\r\n\r\nThe following was the issue, the ResolvingPhantomJSDriverService needed to be configured with the capabilities. (see line 173). This is specifically the case when you need to configure the driver with CommandLineArguments.  The following works:\r\n\r\n````\r\nWebDriver driver = new PhantomJSDriver(\r\n        ResolvingPhantomJSDriverService.createDefaultService(capabilities),\r\n        capabilities);\r\n````"}}