您好,我运行时报错了。这些库,我都有 install。
Traceback (most recent call last):
File "runner.py", line 60, in runTest
File "C:/Users/DELL/Desktop/H5/exe/scripts\小程序.air\小程序.py", line 7, in
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
ModuleNotFoundError: No module named 'poco.drivers.android.uiautomation'
部分代码如下:
author = "DELL"
from airtest.core.api import *
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
poco = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False)
auto_setup(file)
xy = poco.get_screen_size()
x = xy[0]
y = xy[1]
wait(Template(r"tpl1574851348258.png", record_pos=(-0.129, 0.815), resolution=(1080, 1920)))
swipe((0.5*x,0.2*y),(0.5*x,0.8*y),duration=1)