poco对象生成的几种方式根据你使用不同的ui决定

androidpoco定义方法

from poco.drivers.android.uiautomation import AndroidUiautomationPoco
dev = connect_device("android:///" + devices)
Androidpoco = AndroidUiautomationPoco(device=dev, use_airtest_input=True, screenshot_each_action=False)

unitypcoo定义方法方法

from poco.drivers.unity3d import UnityPoco
dev = connect_device("android:///" + devices)
poco = UnityPoco(device=dev)

cocos-luapoco定义方法

from poco.drivers.std import StdPoco
poco = StdPoco()

cocos-js poco定义方法

from poco.drivers.cocosjs import CocosJsPoco
poco = CocosJsPoco()

iospoco定义方法

from poco.drivers.ios import iosPoco
poco = iosPoco()

StdPoco定义方法

from poco.drivers.std import StdPoco
from poco.utils.device import VirtualDevice
poco = StdPoco(15004, VirtualDevice('localhost'))
posted @ 2020-09-30 14:20  小小咸鱼YwY  阅读(974)  评论(0编辑  收藏  举报