org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: Problem getting session data for driver type AndroidDriver; does it implement 'get driverData'?

Hi,

Appium v1.65
Operating System: Windows 7
node v6.11.0
npm 3.10.10

I am new to Appium and I am getting this weird Error: org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: Problem getting session data for driver type AndroidDriver; does it implement ‘get driverData’? (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 33 milliseconds

I am running a parallel testing using two Android devices, two instances of Appium and two drivers. I also used one driver before but still I am getting the same error.

my capabilities set using the following method:
public DesiredCapabilities getCaps(String udid, String platformVersion,String deviceName) {
streamCaps.setCapability(“deviceName”, deviceName);
streamCaps.setCapability(“udid”, udid);
streamCaps.setCapability(“platformVersion”, platformVersion);
streamCaps.setCapability(“platformName”, “Android”);
streamCaps.setCapability(“appPackage”, “com.motorolasolutions.videostream”);
streamCaps.setCapability(“appActivity”, “com.motorolasolutions.videostream.VideoStreamActivity”);
streamCaps.setCapability(“autoGrantPermissions”, true);

return streamCaps;

}

Your help is really appreciated. I need a response quickly. I 've been trying for the last 3 days with no luck of getting rid of the error.

Below is the log:

appErr.txt (61.0 KB)

1 Like

--session-override issue in appium 1.5 这里写了你那个问题的解决方法。