WebdriverIO Codemod 
This project contains various codemods to help migrating from either one major WebdriverIO version to another or from a specific framework to WebdriverIO. It can be used with jscodeshift and currently supports the following migrations:
If you run into any issues during your migration please let us know.
Install
To transform your spec files, you need to install the following packages:
$ npm install jscodeshift @wdio/codemod
Usage
To transform you code, run:
$ npx jscodeshift -t ./node_modules/@wdio/codemod/<framework> <path>
$ npx jscodeshift -t ./node_modules/@wdio/codemod/protractor ./e2e/
You can transform tests as well as config files, e.g.:
