Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIVO手机截屏错误,屏幕翻转错误 #1193

Open
rogue1103 opened this issue Jan 27, 2024 · 0 comments
Open

VIVO手机截屏错误,屏幕翻转错误 #1193

rogue1103 opened this issue Jan 27, 2024 · 0 comments

Comments

@rogue1103
Copy link

(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)

(重要!问题分类)

描述问题bug
在VIVO X90,VIVO IQOO Neo6使用minicap的截屏方式,执行touch,exists等需要截屏的命令时,未识别到屏幕翻转。
发现在airtest.core.android.android的screen_proxy方法中,没有将rotation_watcher=self.rotation_watcher传入,导致无法响应翻转的回调方法update_rotation。
image
增加翻转回调之后,继续发现airtest.core.android.adb的getDisplayOrientation方法需要更新。
我手上VIVO X90和VIVO IQOO Neo6这两台设备无法获取翻转后的截图,需要修改进行匹配的正则表达式和匹配结果。
image

(在这里粘贴traceback或其他报错信息)

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

复现步骤

  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上正常。)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant