Hai Team,
I would like to handle (Start and Stop instances) appium server V 1.6.5 by my code using c#. I have tried the following code ,
/*******/
AppiumLocalService service = AppiumLocalService.BuildDefaultService();
service.Start();
/*******/
and also the following code as well,
/*******/
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.FileName = “cmd.exe”;
startInfo.Arguments = “/C C:/Program Files/nodejs/node.exe C:/Users/MyName/AppData/Local/Programs/appium-desktop/resources/app/node_modules/appium/lib/appium.js --address 127.0.0.1 --port 4723 --automation-name Appium --log-no-color”;
process.StartInfo = startInfo;
process.Start();
/*******/
But i keep on getting the following error,
An exception of type ‘System.InvalidOperationException’ occurred in WebDriver.dll but was not handled in user code
Additional information: A new session could not be created. Details: Problem getting session data for driver type AndroidDriver; does it implement ‘get driverData’? (33)
But Why? Thanks in advance…