UI Automator:获取UI层次结构XML文件时出错:com.android.ddmlib.TimeoutException

时间:2016-01-05 09:54:48

标签: android appium uiautomator

我正在使用默认的Android模拟器并尝试使用UI Automator获取字段ID。但是,当我尝试捕获屏幕时,它停止说下面的行:

Error while obtaining UI hierarchy XML file: com.android.ddmlib.TimeoutException

I have followed this link also 但没有成功。
我正在使用Appium测试android应用程序,需要id来编写测试用例。

1 个答案:

答案 0 :(得分:1)

如果同时使用Genymotion,则在设置中启用“截屏”选项,然后重启设备()