init project
mkdir jsdc-tw-2016-webdriverio
cd jsdc-tw-2016-webdriverio
npm init -y
npm i webdriverio -D
generate config
./node_modules/webdriverio/bin/wdio
setting up npm test
vi package.json
"test": "wdio wdio.conf.js"
first test script
mkdir -p test/specs
touch ./test/specs/demo.js
execute
npm test
npm run demo1
npm run demo2