appium android 初体验

代码用的appium自带的例子,就不贴了。

遇到的两个问题,

Could not find a Android device

因为没有android真机,所以用模拟器跑,一开始,我以为会自动帮我启动android模拟器然后运行。

实际上是要自己启动了android模拟器才能行,不然就报Could not find a Android device

UiAutomator quit before it successfully launched

android模拟器启动的速度有点慢,还没开机完成,我就运行了程序,结果得到这个错误。。

完全开机是不会报这个错的。

原文地址:https://www.cnblogs.com/zhangminjie/p/3959769.html