- Run Android Devices and enable remote debugging
- ADB should be running in your machine (http://developer.android.com/tools/help/adb.html)
$you> adb start-server
$you> adb devices
List of devices attached
12n45n54b device
Note: Ensure your device has been detected
- Download Chromedriver http://chromedriver.storage.googleapis.com/index.html (I'm using 2.9.x)
- Run
$you> chromedriver --url-base=wd/hub --verbose
Starting ChromeDriver (v2.9.248315) on port 9515
I assume you have Node.js already installed, we need to configure your JS environment.
- Install wd.js (https://github.com/admc/wd)
npm install wd
- Execute the test
node wd.foo.test.js
- Look closely your phone ;) And enjoy the dance !!
follow your step , I find the logic between the chrome-driver and andriod webview, thx.....