Appium Appium popwindow 无法定位元素

阿明的小蝴蝶 · April 09, 2018 · Last by 阿明的小蝴蝶 replied at April 11, 2018 · 2925 hits


脚本执行 popwindow 找不到元素 脚本终止执行

https://blog.csdn.net/qq744746842/article/details/50284239
已经参考这个 blog 去设置 setFocusable(true) 没有作用。哪位有遇到这种情况还望赐教

共收到 5 条回复 时间 点赞

没遇到过,把日志贴出来看看

我之前遇见过这个问题,参考一下这篇文章https://blog.csdn.net/qq744746842/article/details/50284239

试下 popupWindow.getContentView().setFocusable(true);和 popupWindow.setFocusable(true);

用 adb 去解决

@lose @zoe1808 @gjxlaosiji @xiaozi2400-github 谢谢各位关心我目前已经解决这个问题了,跟大家分享一下我的解决方案
https://blog.csdn.net/qq_19986309/article/details/79894384 当然大家有更好的解决方案可以一起讨论啊

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up