AirtestProject / Poco

A cross-engine test automation framework based on UI inspection
http://airtest.netease.com/
Apache License 2.0
1.74k stars 315 forks source link

poco.start_gesture()运行时取的坐标横竖屏反了 #522

Open songzhenhua opened 2 years ago

songzhenhua commented 2 years ago

描述问题bug 在AirtestIDE1.2.13中运行 poco.start_gesture()运行时取的坐标横竖屏反了

复现步骤

auto_setup(__file__)
poco = UnityPoco()

poco.long_click([0.193, 0.323])
poco.start_gesture([0.193, 0.323]).hold(1).to([0.6, 0.6]).hold(1).to([0.5, 0.5]).up()
# 长按坐标就对,手势就不对,[0.193, 0.323]是第1个星星的中心点

预期效果 运行的坐标正确

相关截图 image

python 版本: python3.8

poco 版本: 1.0.85

设备: 小米9,红米NOTE10,三星s6