我有一个使用appium python客户机的自动化脚本,它在 android emulator的以下配置:
1)target:Google APIs -API level 19
2)CPU:ARM
但这太过分了慢点。所以呢我使用以下配置切换到新的模拟器
1)target:Google APIs(x86 System Image)-API level 19
2)CPU:Intel Atom (x86)
这是非常快速的启动和恢复一切。但是我的脚本随机失败,偶尔会通过一次,原因如下
1)The app screen loaded incompletely(When i minimise and maximise manually it appears correctly,so element could not be found) More Details: screen loads half only.
2)driver.click() passed but effect not visible on Emulator UI(so element could not be found).More details:UI freezes.Can even click manually.When i minimise and maximise then it appears to be responsive.
有人知道如何解决这些问题吗?我添加了implicitwait
,但没有帮助任何一个都可以同样的步骤在基于arm
的cpu
中可以很好地工作,但在基于intel
的hotfix
中却不行
在尝试了很多东西之后,我在我的intelx86仿真器中禁用了
Use Host GPU
,现在它可以工作了好的。仅供参考你知道吗相关问题 更多 >
编程相关推荐