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
http://127.0.0.1:4723/wd/hub/status is provided error is That URL did not map to a valid JSONWP
- http://127.0.0.1:4723/wd/hub is provided error observed is A new session could not be created. (Original error: Permission to start activity denied.)
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..