Start Appium server pro-grammatically using C#.

System.Diagnostics.Process process = new System.Diagnostics.Process();
             System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
             startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
             startInfo.FileName = "C:\\Program Files (x86)\\Appium\\node.exe";
             startInfo.Arguments = @"""C:\\Program Files (x86)\\Appium\\node_modules\\appium\\bin\\appium.js"" --address 127.0.0.1 --port 4730 --automation-name Appium --log-no-color";
             process.StartInfo = startInfo;
             process.Start();
             Thread.Sleep(20000);

Copyright © 2017 qatoolsguide.blogspot.com || ALL RIGHTS RESERVED