本人android菜鸟,刚开始接触monkeyrunner来进行androi的测试。想通过启动Activity的方式打开系统设置页面。脚本如下:
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage
device = MonkeyRunner.waitForConnection()
MonkeyRunner.sleep(2)
device.startActivity(component="android.provider.Settings/android.provider.Settings.ACTION_SETTINGS")
请各位高手指点下,device.startActivity()内参数是否用错了?该如何修改?
非常感谢
Android monkeyrunner 测试 startactivity
------解决方案--------------------
device.startActivity(component='com.android.settings/com.android.settings.Settings')