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

进入 小程序或h5 页面检测不到组件 #868

Closed
PJ-One opened this issue Jan 31, 2023 · 2 comments
Closed

进入 小程序或h5 页面检测不到组件 #868

PJ-One opened this issue Jan 31, 2023 · 2 comments

Comments

@PJ-One
Copy link

PJ-One commented Jan 31, 2023

  • 手机型号:Galaxy note8 ,HONOOR V20
  • uiautomator2的版本:Version: 2.16.19

image

  • 相关日志:日志就是找不到元素,用python -m weditor定位找不到,如图
    image

  • 我现在这里不检测,用坐标点击进行的
    image

这种检测不是元素的情况,多数出现在h5页面,
请问有伙伴是否遇到?怎么解决的呢?谢谢答复

@PJ-One PJ-One changed the title 进入小程序页面无法加载组件 进入 小程序或h5 页面检测不到组件 Jan 31, 2023
@wangxin-trec
Copy link

uiautomator2适合的是原生的android控件,网页的的话我觉得可以用模拟位置点击的方法吧

@DDDDanny
Copy link

DDDDanny commented Sep 7, 2023

楼上说的没错,u2确实更适合原生控件,但是现在h5页面铺天盖地,就很尴尬。
我也经常遇到元素拿不到的问题,我现在是结合图片识别和OCR来做的,你也可以试试看

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

4 participants