AirtestProject / AirtestProject/AirtestIDE

Linux环境下,通过命令行运行脚本,使用安卓POCO时游戏自动最小化

Open
#860 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
236
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Ubuntu 14.04,python 3.5.2,airtest 1.1.6,pocoui 1.0.80

设备:oppo reno3:colorOS v7.1;安卓10

软件:三国志战略版(软件商店下载) 包名:com.aligame.sgzzlb.nearme.gamecenter

问题如下:

运行如下代码:

from poco.drivers.android.uiautomation import AndroidUiautomationPoco
wake()
sleep(2)
stop_app('com.aligame.sgzzlb.nearme.gamecenter')
sleep(2)
start_app('com.aligame.sgzzlb.nearme.gamecenter')
for i in range(0,3):
sleep(8)
snapshot("1"+str(i)+".jpg",msg="等待进入")

**#####问题出现在这里##############################
poco1 = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False)
#####**

运行 poco1=AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False) 时,会自动将游戏最小化,导致后续POCO操作无法正常进行

备注:目前在竖屏APP上未发现该问题;目前使用windows的IDE运行未发现该问题

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.