{"action":"created","issue":{"url":"https://api.github.com/repos/mattfritz/protractor-cucumber-framework/issues/12","labels_url":"https://api.github.com/repos/mattfritz/protractor-cucumber-framework/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mattfritz/protractor-cucumber-framework/issues/12/comments","events_url":"https://api.github.com/repos/mattfritz/protractor-cucumber-framework/issues/12/events","html_url":"https://github.com/mattfritz/protractor-cucumber-framework/issues/12","id":121213269,"number":12,"title":"Failed to load with frameworkPath","user":{"login":"sylouuu","id":2300259,"avatar_url":"https://avatars.githubusercontent.com/u/2300259?v=3","gravatar_id":"","url":"https://api.github.com/users/sylouuu","html_url":"https://github.com/sylouuu","followers_url":"https://api.github.com/users/sylouuu/followers","following_url":"https://api.github.com/users/sylouuu/following{/other_user}","gists_url":"https://api.github.com/users/sylouuu/gists{/gist_id}","starred_url":"https://api.github.com/users/sylouuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylouuu/subscriptions","organizations_url":"https://api.github.com/users/sylouuu/orgs","repos_url":"https://api.github.com/users/sylouuu/repos","events_url":"https://api.github.com/users/sylouuu/events{/privacy}","received_events_url":"https://api.github.com/users/sylouuu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T11:09:26Z","updated_at":"2015-12-09T11:32:17Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to use cucumber with basic tests found in cucumberjs readme.\r\n\r\n```\r\ncucumberjs --version\r\n0.9.2\r\n\r\nprotractor --version\r\nVersion 3.0.0\r\n```\r\n\r\n```js\r\n/* protractor.conf.js */\r\nexports.config = {\r\n    rootElement: '[ng-app]',\r\n\r\n    seleniumServerJar: 'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.48.2.jar',\r\n\r\n    specs: [\r\n        'tests/e2e/myfeature.feature'\r\n    ],\r\n\r\n    getPageTimeout: 100000,\r\n\r\n    onPrepare: function() {\r\n        global.__base = __dirname + '/';\r\n    },\r\n\r\n    capabilities: {\r\n        browserName: 'chrome',\r\n        version: '',\r\n        platform: 'ANY',\r\n        idleTimeout: 90\r\n    },\r\n\r\n    framework: 'custom',\r\n    frameworkPath: require.resolve('protractor-cucumber-framework'),\r\n\r\n    cucumberOpts: {\r\n        require: [\r\n            'tests/e2e/steps/mystep.js',\r\n        ],\r\n        format: 'pretty', // or summary\r\n        keepAlive: false\r\n    },\r\n\r\n    onCleanUp: function() {}\r\n\r\n};\r\n```\r\n\r\n**myfeature.feature**:\r\n\r\n```\r\nFeature: Example feature\r\n    As a user of cucumber.js\r\n    I want to have documentation on cucumber\r\n    So that I can concentrate on building awesome applications\r\n\r\n    Scenario: Reading documentation\r\n        Given I am on the Cucumber.js GitHub repository\r\n        When I go to the README file\r\n        Then I should see \"Usage\" as the page title\r\n```\r\n\r\n**mystep.js**:\r\n\r\n```js\r\nmodule.exports = function () {\r\n    this.World = require(__base +'tests/e2e/support/world').World;\r\n\r\n    this.Given(/^I am on the Cucumber.js GitHub repository$/, function (callback) {\r\n        // Express the regexp above with the code you wish you had.\r\n        // `this` is set to a World instance.\r\n        // i.e. you may use this.browser to execute the step:\r\n\r\n        console.log(this);\r\n\r\n        this.visit('https://github.com/cucumber/cucumber-js', callback);\r\n\r\n        // The callback is passed to visit() so that when the job's finished, the next step can\r\n        // be executed by Cucumber.\r\n    });\r\n\r\n    this.When(/^I go to the README file$/, function (callback) {\r\n        // Express the regexp above with the code you wish you had. Call callback() at the end\r\n        // of the step, or callback.pending() if the step is not yet implemented:\r\n\r\n        callback.pending();\r\n    });\r\n\r\n    this.Then(/^I should see \"(.*)\" as the page title$/, function (title, callback) {\r\n        // matching groups are passed as parameters to the step definition\r\n\r\n        var pageTitle = this.browser.text('title');\r\n        if (title === pageTitle) {\r\n            callback();\r\n        } else {\r\n            callback(new Error(\"Expected to be on page with title \" + title));\r\n        }\r\n    });\r\n};\r\n```\r\n\r\n```\r\nprotractor protractor.conf.js --baseUrl=\"my-url-website\"\r\n```\r\n\r\nHere is my output:\r\n\r\n```Starting selenium standalone server...\r\n[launcher] Running 1 instances of WebDriver\r\nSelenium standalone server started at http://192.168.168.82:55494/wd/hub\r\n[launcher] Error: TypeError: Path must be a string. Received false\r\n    at assertPath (path.js:8:11)\r\n    at Object.posix.resolve (path.js:424:5)\r\n    at Object.realpathSync (fs.js:1380:18)\r\n    at Object.expandPathWithRegexp (/Users/syl/Sites/pro/back-office-edito-web/node_modules/cucumber/lib/cucumber/cli/path_expander.js:23:23)\r\n    at /Users/syl/Sites/pro/back-office-edito-web/node_modules/cucumber/lib/cucumber/cli/path_expander.js:9:39\r\n    at Array.forEach (native)\r\n    at Object.expandPathsWithRegexp (/Users/syl/Sites/pro/back-office-edito-web/node_modules/cucumber/lib/cucumber/cli/path_expander.js:8:11)\r\n    at Object.expandPaths (/Users/syl/Sites/pro/back-office-edito-web/node_modules/cucumber/lib/cucumber/cli/feature_path_expander.js:6:38)\r\n    at getFeaturePaths (/Users/syl/Sites/pro/back-office-edito-web/node_modules/cucumber/lib/cucumber/cli/configuration.js:34:45)\r\n    at Object.getFeatureSources (/Users/syl/Sites/pro/back-office-edito-web/node_modules/cucumber/lib/cucumber/cli/configuration.js:110:26)\r\n[launcher] Process exited with error code 100\r\n```\r\n\r\nI commented the feature file but nothing. Have you an idea?\r\n\r\nBests :)"},"comment":{"url":"https://api.github.com/repos/mattfritz/protractor-cucumber-framework/issues/comments/163194755","html_url":"https://github.com/mattfritz/protractor-cucumber-framework/issues/12#issuecomment-163194755","issue_url":"https://api.github.com/repos/mattfritz/protractor-cucumber-framework/issues/12","id":163194755,"user":{"login":"darrinholst","id":4854,"avatar_url":"https://avatars.githubusercontent.com/u/4854?v=3","gravatar_id":"","url":"https://api.github.com/users/darrinholst","html_url":"https://github.com/darrinholst","followers_url":"https://api.github.com/users/darrinholst/followers","following_url":"https://api.github.com/users/darrinholst/following{/other_user}","gists_url":"https://api.github.com/users/darrinholst/gists{/gist_id}","starred_url":"https://api.github.com/users/darrinholst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrinholst/subscriptions","organizations_url":"https://api.github.com/users/darrinholst/orgs","repos_url":"https://api.github.com/users/darrinholst/repos","events_url":"https://api.github.com/users/darrinholst/events{/privacy}","received_events_url":"https://api.github.com/users/darrinholst/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T11:32:16Z","updated_at":"2015-12-09T11:32:16Z","body":"It doesn't currently support `false` options so removing `keepAlive: false` should get you going"}}