AirtestProject / AirtestProject/Poco

poco不能准确展示当前页面的UI树,选择元素定位是错的。(airtest库的版本是1.2.4,不是1.2.3)

Aperta
#527 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

:bulb:**相关项目:** Poco

**标题:** [BUG提交]poco不能准确展示当前页面的UI树,选择元素定位是错的。(airtest库的版本是1.2.4,不是1.2.3)

**AirtestIDE版本:** m1 macbook pro,IDE版本1.2.13

- [x] **使用了本地Pyhton环境运行脚本**
- Python版本: 3.6.8
- Airtest版本: v1.2.3

**报错描述:**
    首先 airtest库的版本是1.2.4,不是1.2.3,因为最多只能填1.2.3
问题描述:一个表单页面,进入后第一个屏幕能识别到元素。 往下滑动之后,元素识别都是有问题的啊。 都不对导致跑脚本的时候都找不到

**相关截图:**
![](https://hfc20-issue-helper.s3.nie.netease.com/media/2022/02/16/236/image.png)
![](https://hfc20-issue-helper.s3.nie.netease.com/media/2022/02/16/236/9a0eb3c55b2fbf39bc18dc9f09059ee5.jpg)
![](https://hfc20-issue-helper.s3.nie.netease.com/media/2022/02/16/236/image_5QK8gEC.png)
![](https://hfc20-issue-helper.s3.nie.netease.com/media/2022/02/16/236/image_bOUWmW8.png)
![](https://hfc20-issue-helper.s3.nie.netease.com/media/2022/02/16/236/image_r4rLclU.png)

**报错Log:**
```

```

**连接设备信息:**
设备类型 | 设备型号 | 系统版本号 | apk名称/下载链接
------------ | ------------- | ------------- | -------------
Android | 华为P20 | HarmonyOS 2.0.0 | 商店搜“异乡好居”就是

**提供最小可复现此BUG的代码:**
```
# 这个是在没有填写个人信息内容的情况下的
# 在“个人申请资料”页面执行点击
poco(name="个人信息").click()
# 进入编辑个人信息页面
poco(name="保存").wait_for_appearance()
# # 滑动屏幕
width, height = device().get_current_resolution()
start_pt = (width * 0.5, height * 0.75)
end_pt = (width * 0.5, height * 0.10)
swipe(start_pt, end_pt, duration=1.5)
sleep(3)
# 输入邮箱
poco(text="请输入经常使用的邮箱").set_text("abcdefg@qq.com")
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.