AirtestProject / AirtestProject/Airtest
VIVO手机截屏错误,屏幕翻转错误
- Dominant language
- Python
- Stars
- 9.6k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)
**(重要!问题分类)**
* 测试开发环境AirtestIDE使用问题 -> https://github.com/AirtestProject/AirtestIDE/issues
* 控件识别、树状结构、poco库报错 -> https://github.com/AirtestProject/Poco/issues
* 图像识别、设备控制相关问题 -> 按下面的步骤
**描述问题bug**
在VIVO X90,VIVO IQOO Neo6使用minicap的截屏方式,执行touch,exists等需要截屏的命令时,未识别到屏幕翻转。
发现在airtest.core.android.android的screen_proxy方法中,没有将rotation_watcher=self.rotation_watcher传入,导致无法响应翻转的回调方法update_rotation。

增加翻转回调之后,继续发现airtest.core.android.adb的getDisplayOrientation方法需要更新。
我手上VIVO X90和VIVO IQOO Neo6这两台设备无法获取翻转后的截图,需要修改进行匹配的正则表达式和匹配结果。

```
(在这里粘贴traceback或其他报错信息)
```
**相关截图**
(贴出遇到问题时的截图内容,如果有的话)
(在AirtestIDE里产生的图像和设备相关的问题,请贴一些AirtestIDE控制台黑窗口相关报错信息)

**复现步骤**
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**预期效果**
正常翻转
**python 版本:** `python3.10`
**airtest 版本:** `1.0.69`
> airtest版本通过`pip freeze`可以命令可以查到
**设备:**
- 型号: [vivo iqoo neo6,vivox90]
- 系统: [e.g. Android 13]
- (别的信息)
**其他相关环境信息**
(其他运行环境,例如在linux ubuntu16.04上运行异常,在windows上正常。)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.