Appium is not identifying the device -
i new appium. did set configurations , tried test samsung galaxy tab of android kitkat 4.4.2. device not getting identified appium. device getting identified android not appium.please me resolve issue.
i giving coding here
@beforetest public void setup() throws exception { /* * file classpathroot = new file(system.getproperty("user.dir")); file * appdir = new file(classpathroot, "../../../apps/apidemos/bin"); file * app = new file(appdir, "apidemos-debug.apk"); */ desiredcapabilities capabilities = new desiredcapabilities(); capabilities.setcapability("automationname","selendroid"); capabilities.setcapability(capabilitytype.version, "4.4.2"); capabilities.setcapability("devicename", "4d0001f745b350e1"); capabilities.setcapability("platformname","android"); capabilities.setcapability(capabilitytype.browser_name,"chrome"); driver = new androiddriver(new url("http://127.0.0.1:4723/wd/hub"), capabilities); } @aftertest public void teardown(){ driver.quit(); } @test public void apidemo() { driver.get("http://www.facebook.com"); }
and when running this,appium showing 0 connected devices.
but same configured appium working fine emulator of 4.3.
- check cable connection
- are able see device on adb devices directly ?
- if not able see on adb devices , den please enable usb debugging , tap on yes on prompt authorize device.
- check drivers device , install
- check connecting debugging other in other mode instead of mtp mode
Comments
Post a Comment