I managed to get it to work. Providing an empty readable stream. Then you specify your specification files in the configuration file.
var protractor = require('gulp-protractor').protractor; gulp.task('protractor', ['webdriverUpdate'],function(){ return gulp.src([]) .pipe(protractor({ configFile: __dirname + '/protractor.conf.js' })); });
also do not forget that webdriverUpdate
var webdriverUpdate = require('gulp-protractor').webdriver_update; gulp.task('webdriverUpdate', webdriverUpdate );
and in the configuration file:
seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar',
With this, I stopped getting the error.
Update
issue No. 2551 is closed and fixed since version 2.5.0
source share