i am using visual studio in window working on appiun version 1.2.4.1
and i run test on degug mode on device(lg nexus) that connected to my conputer its run , and i add breakpoint and when the test pause on the breakpoint i launch on the inspector window and try to refresh and get error message:
i also attach my appium server configuration - might be somthing i have to change?
the error in the server is:
2014-10-13T11:18:53.450Z - error: Failed to start an Appium session, err was: Error: No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-existing app on device
2014-10-13T11:18:53.453Z - debug: Error: No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-
and my code is :
1 capabilities.SetCapability(CapabilityType.BrowserName, “Android”);
2 capabilities.SetCapability(CapabilityType.Version, “4.4.2”);
3 capabilities.SetCapability(CapabilityType.Platform, “Windows”);
4 capabilities.SetCapability(“appPackage”, “com.clicksoftware.clickmobile.touch”); // This is package name of your app (you can get it from apk info app)
5 capabilities.SetCapability(“appActivity”, “com.clicksoftware.clickmobile.touch.ClickMobileTouch”); // This is Launcher activity of your app (you can get it from apk info app)
6 capabilities.SetCapability("platformName", "Android");
7 capabilities.SetCapability("deviceName", "Android");
8 capabilities.SetCapability("Device", "Android");
9 driver = new AppiumDriver(new Uri("http://127.0.0.1:4723/wd/hub"), capabilities);
10 driver.FindElement(By.Id("userName")).SendKeys("w6-qa");
11 driver.FindElement(By.Id("password")).SendKeys("_w6qa1234");
12 driver.FindElement(By.Id("domain")).SendKeys("clicksoftware.com");
13 System.Threading.Thread.Sleep(2000);
14 driver.FindElement(By.Id(“submitBtn”)).Click();
i debug until line 10 and than i launch the inspector element