{"action":"created","issue":{"url":"https://api.github.com/repos/Adezandee/cucumber-mink/issues/22","labels_url":"https://api.github.com/repos/Adezandee/cucumber-mink/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Adezandee/cucumber-mink/issues/22/comments","events_url":"https://api.github.com/repos/Adezandee/cucumber-mink/issues/22/events","html_url":"https://github.com/Adezandee/cucumber-mink/issues/22","id":96350634,"number":22,"title":"Driver baseUrl parameter not being used and throwing error","user":{"login":"lsjroberts","id":3817697,"avatar_url":"https://avatars.githubusercontent.com/u/3817697?v=3","gravatar_id":"","url":"https://api.github.com/users/lsjroberts","html_url":"https://github.com/lsjroberts","followers_url":"https://api.github.com/users/lsjroberts/followers","following_url":"https://api.github.com/users/lsjroberts/following{/other_user}","gists_url":"https://api.github.com/users/lsjroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/lsjroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsjroberts/subscriptions","organizations_url":"https://api.github.com/users/lsjroberts/orgs","repos_url":"https://api.github.com/users/lsjroberts/repos","events_url":"https://api.github.com/users/lsjroberts/events{/privacy}","received_events_url":"https://api.github.com/users/lsjroberts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T15:46:08Z","updated_at":"2015-07-21T21:53:47Z","closed_at":"2015-07-21T21:46:18Z","body":"It seems the `baseUrl` parameter isn't being used by the `root` method in [step_definitions/ext/navigation.js](https://github.com/Adezandee/cucumber-mink/blob/master/lib/step_definitions/ext/navigation.js#L14-L21).\r\n\r\nI am on version `1.0.0` and have the following configuration:\r\n\r\n```js\r\nvar mink = require('cucumber-mink');\r\n\r\nvar parameters = {\r\n  driver: {\r\n    baseUrl: 'https://example.local/',\r\n    port: 3001,\r\n    desiredCapabilities: {\r\n      browserName: 'phantomjs'\r\n    }\r\n  }\r\n};\r\n\r\nmodule.exports = function () {\r\n  mink.init(this, parameters);\r\n};\r\n```\r\n\r\nUsing the step `And I am on the homepage` I get:\r\n\r\n```\r\nError: Please provide a base url to use root functions !\r\n    at [object Object].exports.root (/path/to/node_modules/cucumber-mink/lib/step_definitions/ext/navigation.js:17:14)\r\n    at Object.<anonymous> (/path/to/features/support/scenarios/auth.js:7:5)\r\n    at process._tickDomainCallback (node.js:381:11)\r\n```\r\n\r\nAnd using `And I am on \"/\"` I get:\r\n\r\n```\r\nTypeError: Parameter 'url' must be a string, not object\r\n    at Url.parse (url.js:110:11)\r\n    at urlParse (url.js:104:5)\r\n    at Object.urlResolve [as resolve] (url.js:437:10)\r\n    at [object Object].exports.browse (/path/to/node_modules/cucumber-mink/lib/step_definitions/ext/navigation.js:24:23)\r\n    at Object.<anonymous> (/path/to/features/support/scenarios/auth.js:7:5)\r\n    at process._tickDomainCallback (node.js:381:11)\r\n```\r\n\r\nShould I not pass it in as a paramter but set it using the a `baseUrl()` method in [step_definitions/ext/utility.js](https://github.com/Adezandee/cucumber-mink/blob/master/lib/step_definitions/ext/utility.js#L21-L25)? At what point should that be called?"},"comment":{"url":"https://api.github.com/repos/Adezandee/cucumber-mink/issues/comments/123488250","html_url":"https://github.com/Adezandee/cucumber-mink/issues/22#issuecomment-123488250","issue_url":"https://api.github.com/repos/Adezandee/cucumber-mink/issues/22","id":123488250,"user":{"login":"Adezandee","id":4415204,"avatar_url":"https://avatars.githubusercontent.com/u/4415204?v=3","gravatar_id":"","url":"https://api.github.com/users/Adezandee","html_url":"https://github.com/Adezandee","followers_url":"https://api.github.com/users/Adezandee/followers","following_url":"https://api.github.com/users/Adezandee/following{/other_user}","gists_url":"https://api.github.com/users/Adezandee/gists{/gist_id}","starred_url":"https://api.github.com/users/Adezandee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adezandee/subscriptions","organizations_url":"https://api.github.com/users/Adezandee/orgs","repos_url":"https://api.github.com/users/Adezandee/repos","events_url":"https://api.github.com/users/Adezandee/events{/privacy}","received_events_url":"https://api.github.com/users/Adezandee/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T21:53:47Z","updated_at":"2015-07-21T21:53:47Z","body":"Dunno why it was automatically closed... anyway, i published a patch : https://github.com/Adezandee/cucumber-mink/releases/tag/v1.0.1"}}