我是Appium的新手。我确实设置了配置,并尝试测试android kitkat 4.4.2的三星galaxy选项卡。该设备未被appium识别。该设备正在被android识别,但不是appium。请帮我解决问题。
我在这里给出了编码
@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");
}
当我运行时,Appium显示为0连接设备。
但同样配置的Appium与4.3的模拟器一起工作正常。
答案 0 :(得分:0)