john-doherty / selenium-cucumber-js

Browser automation framework written in pure JavaScript using official selenium-webdriver and cucumber-js
ISC License
120 stars 89 forks source link

Selenium cucumber does not run on Mac #85

Closed lucfranken closed 4 years ago

lucfranken commented 6 years ago

When I run the examples I get errors of a file not found.

$ node ./node_modules/selenium-cucumber-js/index.js
fs.js:122
    throw err;
    ^

Error: ENOENT: no such file or directory, lstat '/Users/xxx/Software/xxx/xxx/"synchronous"}''

The full directory is correct: /Users/xxx/Software/xxx/xxx/, tested that with cd command.

It looks like "synchronous" is added behind the path but I cannot find it in the repository.

node -v
v11.0.0
npm -v
6.4.1

package.json

{
  "name": "xxxx",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "cucumber-js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "selenium-cucumber-js": "^1.6.2"
  },
  "dependencies": {}
}
stck commented 5 years ago

Do you still facing this issue? @lucfranken

lucfranken commented 5 years ago

@stck yes: Same problem still exists. Has there been any update as I don't see one?

stck commented 5 years ago

@lucfranken So i can't reproduce this with your environment, even with examples. node ./node_modules/selenium-cucumber-js/index.js -f node_modules/selenium-cucumber-js/features/buy-workwear.feature looks fine for me w/ Node 11.0.0(x64). Can you connect to your node with debugger and look for stacktrace?

iTechDhaval commented 5 years ago

@lucfranken So i can't reproduce this with your environment, even with examples. node ./node_modules/selenium-cucumber-js/index.js -f node_modules/selenium-cucumber-js/features/buy-workwear.feature looks fine for me w/ Node 11.0.0(x64). Can you connect to your node with debugger and look for stacktrace?

node ./node_modules/selenium-cucumber-js/index.js -f node_modules/selenium-cucumber-js/features/buy-workwear.feature command also result in same error on windows and linux both environment. I have not checked it in macos.

john-doherty commented 4 years ago

Fixed. Min node version updated to 12