如何用monkeyrun触摸Bluesacks中的next按钮

2024-09-30 18:24:08 发布

您现在位置:Python中文网/ 问答频道 /正文

请参阅所附图片。如何使用MonkeyRunner按下Instagram应用程序中的“下一步”按钮?在

有什么建议吗?在

我的代码

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

device = MonkeyRunner.waitForConnection()

package_sq = 'com.instest'
activity_sq = 'com.instest.MainActivity'

runComponent = package_sq + '/' + activity_sq

device.startActivity(component = runComponent)

device.press('KEYCODE_FORWARD', MonkeyDevice.DOWN_AND_UP)

enter image description here


Tags: com应用程序packagedevicesq请参阅activity按钮