AirtestProject / AirtestProject/Poco

游戏和安卓系统同时操作,横竖屏转换错误

Open
#436 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
341
PR merge metrics
No merged PRs in 30d

Description

airtest1.1.7
pocoui1.0.80
UnityPoco和AndroidUiautomationPoco同时使用

案例一:实际竖屏(仍当横屏),导致坐标错误,红米k30
![image](https://user-images.githubusercontent.com/7867532/105436824-df89c880-5c9a-11eb-9adc-3078d2283c98.png)
如图,游戏是横屏,点击游戏退出按钮后返回安卓桌面,打开设置,点击设置的搜索栏,在竖屏状态下点击的坐标(1326,211),是超出竖屏的宽度的。但如果想像现在是横屏,那坐标就是对的。也就是这时poco仍认为是横屏(实际是竖屏)。
如果是在游戏中按HOME键返回桌面去操作设置中的元素,就是正常的。

案例二:实际横屏(当竖屏),导致坐标错误,三星s9+
游戏中,弹出Android原生界面(1.游戏中权限弹框2.游戏中SDK打开内置网页)
此时仍是横屏,但从click()的坐标看,poco认为是竖屏

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.