小浩321 发表于 2019-3-13 16:27:20

monkeyrunner之实际使用

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice,MonkeyImage
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyrunner.easy import By

device = MonkeyRunner.waitForConnection()
easy_device = EasyMonkeyDevice(device)
easy_device.startActivity('com.orient.seal.sealmobile/com.orient.seal.sealmobile.MainActivity')
device.type('newapply')

页: [1]
查看完整版本: monkeyrunner之实际使用