AirtestProject / AirtestProject/Poco

對兩個UI元件執行click指令,兩次click動作中間相隔約30秒

Đang mở
#549 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
2k
Fork
341
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

**标题:** [问题咨询]對兩個UI元件執行click指令,兩次click動作中間相隔約30秒

**AirtestIDE版本:** 1.2.14

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

**报错描述:**
    對兩個UI元件執行click指令,兩次click動作中間相隔約30秒,請問一下這是正常的嗎?

**相关截图:**
![](https://hfc20-issue-helper.s3.nie.netease.com/media/2022/05/26/304/2022-05-26_131316.png)

**报错Log:**
```
{"tag": "function", "depth": 1, "time": 1653537707.0521772, "data": {"name": "record_ui", "call_args": {"driver": "", "action": "'click'", "ui": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[4]\"", "args": "[0.09490204, 0.627037048]"}, "start_time": 1653537707.0512006, "ret": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[4]\"", "end_time": 1653537707.0521772}}
{"tag": "function", "depth": 2, "time": 1653537711.3582168, "data": {"name": "try_log_screen", "call_args": {"screen": null, "quality": null, "max_size": null}, "start_time": 1653537709.3449895, "ret": {"screen": "1653537711192.jpg", "resolution": [900, 1600]}, "end_time": 1653537711.3582168}}
{"tag": "function", "depth": 1, "time": 1653537712.3488579, "data": {"name": "touch", "call_args": {"v": [85.411836, 1003.2592768000001], "kwargs": {"duration": 0.01}, "times": 1}, "start_time": 1653537709.3449895, "ret": [85.411836, 1003.2592768000001], "end_time": 1653537712.3488579}}
{"tag": "function", "depth": 1, "time": 1653537747.6586308, "data": {"name": "record_ui", "call_args": {"driver": "", "action": "'click'", "ui": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[9]\"", "args": "[0.23008728, 0.627037048]"}, "start_time": 1653537747.6586308, "ret": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[9]\"", "end_time": 1653537747.6586308}}
{"tag": "function", "depth": 2, "time": 1653537747.8421178, "data": {"name": "try_log_screen", "call_args": {"screen": null, "quality": null, "max_size": null}, "start_time": 1653537747.6586308, "ret": {"screen": "1653537747825.jpg", "resolution": [900, 1600]}, "end_time": 1653537747.8421178}}
{"tag": "function", "depth": 1, "time": 1653537748.0265825, "data": {"name": "touch", "call_args": {"v": [207.078552, 1003.2592768000001], "kwargs": {"duration": 0.01}, "times": 1}, "start_time": 1653537747.6586308, "ret": [207.078552, 1003.2592768000001], "end_time": 1653537748.0265825}}
```

**连接设备信息:**
设备类型 | 设备型号 | 系统版本号 | apk名称/下载链接
------------ | ------------- | ------------- | -------------
Android | 雷電模擬器3.1.26 | Android5.1.1 |

**提供最小可复现此BUG的代码:**
```
# -*- encoding=utf8 -*-
__author__ = "User"
from airtest.core.api import *
auto_setup(__file__)

from poco.drivers.unity3d import UnityPoco
poco = UnityPoco()

poco("ChipsRoot").child("UIChipView(Clone)")[0].click();
poco("ChipsRoot").child("UIChipView(Clone)")[1].click();

```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.