{"id":21648059,"url":"https://github.com/markelog/gulp-wdio","last_synced_at":"2025-07-18T17:05:46.527Z","repository":{"id":57259494,"uuid":"59477086","full_name":"markelog/gulp-wdio","owner":"markelog","description":"Better gulp plugin for webdriver.io","archived":false,"fork":false,"pushed_at":"2017-03-05T21:15:41.000Z","size":58,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T10:49:08.641Z","etag":null,"topics":["browserstack","gulp","integration","selenium","test","wdio","webdriver"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markelog.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-23T11:27:43.000Z","updated_at":"2023-08-30T13:49:51.000Z","dependencies_parsed_at":"2022-08-28T21:50:45.662Z","dependency_job_id":null,"html_url":"https://github.com/markelog/gulp-wdio","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/markelog/gulp-wdio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Fgulp-wdio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Fgulp-wdio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Fgulp-wdio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Fgulp-wdio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markelog","download_url":"https://codeload.github.com/markelog/gulp-wdio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Fgulp-wdio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265798330,"owners_count":23829920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browserstack","gulp","integration","selenium","test","wdio","webdriver"],"created_at":"2024-11-25T06:53:10.451Z","updated_at":"2025-07-18T17:05:46.484Z","avatar_url":"https://github.com/markelog.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-wdio [![Build Status](https://travis-ci.org/markelog/gulp-wdio.svg?branch=master)](https://travis-ci.org/markelog/gulp-wdio)\n\nSame as [gulp-webdriver](https://github.com/webdriverio/gulp-webdriver) with three key differences:\n- built-in browserstack support\n- built-in selenium support\n- included webdriver.io package (so you wouldn't have to)\n\nSo you could just simple do –\n```js\nconst wdio = require('gulp-wdio');\n\ngulp.task('e2e', () =\u003e {\n  return gulp.src('path/to/wdio.conf.js').pipe(wdio({\n\n    // Omit \"type\" property if you want start wdio without additional layers\n    type: 'selenium',  // or \"browserstack\"\n    wdio: {} // Same arguments as with `wdio --help`\n  }));\n});\n```\n\nInstead of something like this (taken [from](https://github.com/webdriverio/gulp-webdriver/blob/72c088ece031c70e568296583ef6170bec4ac58d/gulp/test.js) `gulp-webdriver` test script) –\n```js\n// For local selenium\nimport gulp from 'gulp'\nimport selenium from 'selenium-standalone'\nimport webdriver from '../lib/index'\n\nexport default options =\u003e {\n    let errorLog = options.errorHandler('Selenium start')\n\n    gulp.task('selenium:start', done =\u003e {\n        selenium.install({\n            logger (message) {\n                process.stdout.write(`${message} \\n`)\n            },\n            progressCb: (totalLength, progressLength) =\u003e {\n                process.stdout.write(`Downloading drivers ${Math.round(progressLength / totalLength * 100)}% \\r`)\n            }\n        }, err =\u003e {\n            if (err) return done(err)\n\n            selenium.start({\n                spawnOptions: {\n                    stdio: 'ignore'\n                }\n            }, (err, child) =\u003e {\n                selenium.child = child\n                errorLog(err)\n                done()\n            })\n        })\n    })\n\n    gulp.task('test', ['selenium:start'], () =\u003e {\n        return gulp.src(`${options.test}/wdio.*`)\n            .pipe(webdriver({\n                logLevel: 'verbose',\n                waitforTimeout: 12345,\n                framework: 'mocha',\n                // only for testing purposes\n                cucumberOpts: {\n                    require: 'nothing'\n                }\n            })).once('end', () =\u003e {\n                selenium.child.kill()\n            })\n    })\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkelog%2Fgulp-wdio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkelog%2Fgulp-wdio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkelog%2Fgulp-wdio/lists"}