Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poco,text获取元素失败 #1203

Open
cocokeke0303 opened this issue Apr 6, 2024 · 2 comments
Open

poco,text获取元素失败 #1203

cocokeke0303 opened this issue Apr 6, 2024 · 2 comments

Comments

@cocokeke0303
Copy link

(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)

(重要!问题分类)

描述问题bug
安卓手机,通过poco,text获取元素失败,提示:获取不到元素。用poco.dump查看页面是获取到通知中心的值,没有获取到页面元素值。报错提示:Cannot find any visible node by query UIObjectProxy of "text=个人预约 >"
image

相关截图
(贴出遇到问题时的截图内容,如果有的话)
(在AirtestIDE里产生的图像和设备相关的问题,请贴一些AirtestIDE控制台黑窗口相关报错信息)

复现步骤

  1. 先根据截图做页面跳转
  2. 页面跳转后,在根据text定义元素,获取不到元素值

预期效果
poco(text="个人预约 >") 获取到元素值

python 版本: `python3.12

airtest 版本: 1.2.17

airtest版本通过pip freeze可以命令可以查到

设备:

  • 型号:小米手机 redmi note8 Pro
  • 系统: Android 11
  • (别的信息)

其他相关环境信息
(其他运行环境,例如在linux ubuntu16.04上运行异常,在windows上正常。)

@cocokeke0303
Copy link
Author

在控件识别的时候,只是点击识别到了最上层的控件内容,并不是最底层的直接指向该控件的名字。解决方法就是观察IDE旁边的poco辅助窗,确认一下我们点击的产生的控件名是否是最底层的命名。
是不是这个问题?

@cocokeke0303
Copy link
Author

我測試的是微信小程序 h5的不支持嗎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant