Encountering a WebDriver session start error when initiating WebdriverIO with Appium and Protractor. This issue suddenly appeared without prior occurrence. Here are the console logs along with the configuration file details. Any assistance would be greatly appreciated.
Versions:
Protractor - 5.1.2 (latest)
Node - 7.9.0
Appium - 1.6.5
(node:27770) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[14:57:35] I/launcher - Running 1 instances of WebDriver
[14:57:35] I/hosted - Using the selenium server at http://localhost:4723/wd/hub
[14:57:58] E/runner - Unable to start a WebDriver session.
[14:58:04] E/launcher - Error: WebDriverError: no such session
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.12.4 x86_64)
...
Also, find below the content of conf.js file:
'use strict';
var log4js = require('log4js');
var fs = require('fs');
exports.config = {
capabilities: {
browserName: '',
platformName: 'Android',
platformVersion: '6.0',
deviceName: 'Moto',
autoWebview: true,
app: '/Users/abhishek/abhishek-test-volunteeringMobileApp/android-debug.apk'
},
baseUrl: 'file:///android_asset/www/index.html',
framework: 'jasmine',
specs: ['Specs/LoginSpec.js'],
seleniumAddress: 'http://localhost:4723/wd/hub',
jasmineNodeOpts: {
defaultTimeoutInterval: 90000,
showColors: true
},
onPrepare: function() {
// Code for preparation
}
}
Appium Logs:
[HTTP] --> POST /wd/hub/session
{"desiredCapabilities":{...}}
[MJSONWP] Calling AppiumDriver.createSession()...
...