gulp-webdriver Build Status Join the chat at https://gitter.im/webdriverio/gulp-webdriver

gulp-webdriver is a gulp plugin to run selenium tests with the WebdriverIO testrunner

Install

1
npm install gulp-webdriver --save-dev

Usage

You can run WebdriverIO locally running this simple task:

1
2
3
gulp.task('test:e2e', function() {
return gulp.src('wdio.conf.js').pipe(webdriver());
});

gulp-webdriver makes the wdio testrunner easy accessible and allows you to run multiple config files sequentially. If desired you can pass additional arguments to the wdio command to specify your test. You can find all available options here or by executin $ wdio --help (if you have WebdriverIO installed globally).

1
2
3
4
5
6
7
gulp.task('test:e2e', function() {
return gulp.src('wdio.conf.js').pipe(webdriver({
logLevel: 'verbose',
waitforTimeout: 10000,
reporter: 'spec'
}));
});