Improve this doc

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
4
5
import webdriver from 'gulp-webdriver';

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 executing $ wdio --help (if you have WebdriverIO installed globally).

1
2
3
4
5
6
7
8
import webdriver from 'gulp-webdriver';

gulp.task('test:e2e', function() {
return gulp.src('wdio.conf.js').pipe(webdriver({
logLevel: 'verbose',
waitforTimeout: 10000
}));
});