2

My before class code

DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability("deviceName", "28A4AA402080GI2");
    capabilities.setCapability(CapabilityType.BROWSER_NAME, "Androdi");
    capabilities.setCapability(CapabilityType.VERSION, "6.0");
    capabilities.setCapability("platformName", "Android");
    capabilities.setCapability("appPackage", "com.xxx.demo");
    capabilities.setCapability("appActivity","com.sample.xxx.LoginActivity");
    wd = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub/status"), capabilities);
    wd.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
}

When

i have gone through the above link before posting this Question. When i perform the steps suggested in the link, that works fine on browser. Where as the same from eclipse throws the error. So i feel this is not a duplicate..

Community
  • 1
  • 1
BugBaster
  • 71
  • 1
  • 3
  • 11
  • Possible duplicate of [Not able to start appium session](http://stackoverflow.com/questions/19973691/not-able-to-start-appium-session) – Emna Ayadi May 17 '16 at 11:26
  • 1
    i have gone through the above link before posting this Question. When i perform the steps suggested in the link, that works fine on browser. Where as the same from eclipse throws the error. So i feel this is not a duplicate... – BugBaster May 17 '16 at 11:31
  • are you sure its the same port number that appium runs on, if yes, try changing the port no in appium servee as well as in your code and give it a shoot – karthick23 May 17 '16 at 11:45
  • Changed the port from 4723 to 4722 still same issue.. – BugBaster May 17 '16 at 11:57
  • A new session could not be created. (Original error: Permission to start activity denied.) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 7.11 seconds – BugBaster May 17 '16 at 12:08

0 Answers0