在Android设备上运行Appium驱动程序,但不启动应用程序(Python)

2024-05-15 02:51:25 发布

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

我正在尝试在不启动任何特定应用程序的情况下启动appium驱动程序。代码如下:

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['deviceName'] = '############'
desired_caps['appPackage'] = 'com.android.settings'
desired_caps['appActivity'] = 'com.android.settings.Settings'
driver = webdriver.Remote('http://127.0.0.1:4725/wd/hub', desired_caps)

我试过使用: 所需的\u caps['autoLaunch']=“假” 但在这种情况下,脚本的其余部分根本不会执行。 谁能给我一个解决办法吗。 (请不要粘贴任何链接,因为我已经搜索了很多)


Tags: 代码com应用程序settings驱动程序情况capsandroid

热门问题