Comments (3)
I just investigated to find the origin of this issue:
Error: spawn c:\Temp\e2e\node_modules\webdriverio\bin\wdio ENOENT
^^^^
Trying to spawn a child process with use of given path to wdio
does not work under Windows. The file exists, but cannot be executed.
The path to the executable should also consider non-linux environments. Besides that, isn't there a better approach to generate this path? (see https://github.com/webdriverio/gulp-webdriver/blob/051bd74/index.js#L17) Especially when webdriverio
npm package isn't a (non-dev) dependency of gulp-webdriver
: see https://github.com/webdriverio/gulp-webdriver/blob/051bd74/package.json
from gulp-webdriver.
Workaround
In your task definition in gulpfile.js
defined the wdioBin
parameter like so:
var path = require('path'),
gulp = require('gulp'),
webdriver = require('gulp-webdriver');
gulp.task('test:e2e', function() {
return gulp.src('wdio.conf.js').pipe(webdriver({
wdioBin: path.join('node_modules', '.bin', 'wdio.cmd') // FIX
}));
});
from gulp-webdriver.
I was getting this error on Windows too and wondered why the fix didn't work. I ended up removing the wdio.cmd paths to make:
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\bin\wdio" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\bin\wdio" %*
)
from gulp-webdriver.
Related Issues (20)
- gulp end event not firing in 2.0.0 HOT 6
- Can not run gulp-webdriver twise HOT 1
- Cannot call before/after hook in additional arguments HOT 2
- Error: task completion callback called too many times HOT 2
- Still cannot use pageObject to reference click(); HOT 1
- Multiples issues after updating from 1.0.3 to 2.0.1 HOT 3
- Unhandled 'error' event when assertion fails HOT 5
- When tests fail gulp execution breaks HOT 1
- Error when starting session in chrome browser HOT 1
- Test hangs on failure... HOT 1
- Npm v2.0.2 does not match the github v2.0.2 HOT 2
- Help required with Appium example
- SIGINT handler is not killing process HOT 7
- init plugin before call init() HOT 2
- Selenium never stops HOT 2
- Running tests is not dependent on key --suite HOT 6
- Plugin does not successfully exit gulp task HOT 1
- Error: Cannot find module '../../build/index'
- Replace gulp-util HOT 3
- Update gulp-webdriver to support webdriverIO version 5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-webdriver.