AirtestProject / AirtestProject/Airtest

iOS横屏App,能够识别图片,但是点击无反应,经测试是没有点击到真实的控件位置

未关闭
#1,267 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
9.6k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

* 图像识别问题

**描述问题bug**

iOS横屏App,能够识别图片,但是点击无反应,经测试是没有点击到真实的控件位置

```
没有报错
[Start running..]
save log in '/var/folders/jt/s4dqhdln5g58_5051jl4lskh0000gq/T/AirtestIDE/scripts/4f2ebf92f0d3bcf60c088d7ebda461cd'
[14:51:27][INFO] Try finding: Template(/Users/zhangli/Documents/autotest/case/测试流程/TW/untitled.air/tpl1735022895459.png)
[14:51:27][DEBUG] try match with MultiScaleTemplateMatchingPre
[14:51:29][DEBUG] [MSTemplatePre] threshold=0.7, result={'result': (748, 288), 'rectangle': ((527.94, 178.75599999999997), (527.94, 398.756), (968.94, 398.756), (968.94, 178.75599999999997)), 'confidence': 0.9908546805381775}
[14:51:29][DEBUG] find_best_result() run time is 1.63 s.
[14:51:29][DEBUG] match result: {'result': (748, 288), 'rectangle': ((527.94, 178.75599999999997), (527.94, 398.756), (968.94, 398.756), (968.94, 178.75599999999997)), 'confidence': 0.9908546805381775, 'time': 1.6280968189239502}
----------------------------------------------------------------------
Ran 1 test in 3.271s

OK
[14:51:30][INFO] update orientation None->UIA_DEVICE_ORIENTATION_LANDSCAPERIGHT
[Finished]

============================================================

```

**相关截图**
![image](https://github.com/user-attachments/assets/9f043f98-bcf4-4b87-89f0-2e8fe1c3fcc4)

**复现步骤**
from airtest.core.api import *
import pywinauto
auto_setup(__file__)
touch(图片)

**预期效果**
点击对应的图片

**python 版本:** `python3.9`

**airtest 版本:** `1.3.5`
> airtest版本通过`pip freeze`可以命令可以查到

**设备:**
- 型号: [iphone 12]
- 系统: [iOS16.0]

**其他相关环境信息**
macos15,windows也有相同的问题

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。