Appium automation在基于intelx86的emu上无法正常工作

2024-09-27 21:29:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个使用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,但没有帮助任何一个都可以同样的步骤在基于armcpu中可以很好地工作,但在基于intelhotfix中却不行


Tags: and脚本apitargetgooglenotbecpu
1条回答
网友
1楼 · 发布于 2024-09-27 21:29:21

在尝试了很多东西之后,我在我的intelx86仿真器中禁用了Use Host GPU,现在它可以工作了好的。仅供参考你知道吗

enter image description here

相关问题 更多 >

    热门问题