AirtestProject / AirtestProject/Airtest
iOS横屏App,能够识别图片,但是点击无反应,经测试是没有点击到真实的控件位置
- Lingua principale
- Python
- Stelle
- 9.6k
- Fork
- 1.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
* 图像识别问题
**描述问题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]
============================================================
```
**相关截图**

**复现步骤**
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也有相同的问题
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.