Driver.launch_app()未在python脚本中启动应用程序

问题描述 投票:0回答:1

当前正在使用python和appium自动化。我已经进行了一些研究,并开始连接设备,但连接设备后,我的应用程序无法启动。我的脚本如下:

from appium import webdriver

url = 'http://jq.deviceconnect.com/Appium'
caps = {
    'gigafox:UserName': 'admin',
    'gigafox:ApiKey': '####',
    'gigafox:application': 'com.google.android.youtube/com.google.
     android.apps.youtube.app.application.Shell$HomeActivity',
    'newCommandTimeout': 600000,
    'gigafox:device': '58d5251c-89cd-4f7a-b2f1-8f316e292e0b',
    'gigafox:SkipInstall': 'true',
    'automationName': 'UIAutimator2'
}

# Start Appium session
print('creating Appium session')
driver = webdriver.Remote(url, caps)
driver.launch_app() 

运行此设备后,我的设备已连接,但是我的应用程序无法启动,并且构建完成。没有错误,因此我认为除了实现方法外没有其他问题。

python android automation appium
1个回答
0
投票

根据GigaFox文档,单击here

根据Appium文档,将应用程序上载到GigaFox并使用bundleId(iOS)或appPackage和appActivity功能来直接启动该应用程序。 GigaFox将使用其自己的内容存储系统安装该应用程序并安装代码,并根据需要实施ACL。

有关Appium所需功能的更多信息,请参见here。>>

© www.soinside.com 2019 - 2024. All rights reserved.