【问题标题】:UI automation using python and appium - Unable to launch WebDriverAgent使用 python 和 appium 的 UI 自动化 - 无法启动 WebDriverAgent
【发布时间】:2018-05-10 06:13:13
【问题描述】:

我正在尝试使用 appium 和 python 在 Iphone 7 plus 上打开并登录 yelp 应用程序。这是我的代码

device_name = "iPhone 7 Plus"
udid = "XXXXXX"

driver = webdriver.Remote(
    command_executor='http://127.0.0.1:4723/wd/hub',
    desired_capabilities={
        'bundleId': "com.yelp.yelpiphone",
        'platformName': 'iOS',
        'deviceName': device_name,
        'udid': udid,
        'automationName': 'XCUITest',
        'platformVersion': '11.1'
    }
)

但应用程序无法打开,我在 Appium 服务器上收到以下错误

[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 
Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. 
Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

【问题讨论】:

    标签: python ios appium ui-automation iphone7plus


    【解决方案1】:

    因此,如果您访问stacktrace 中的页面,您会发现问题通常与未签名未正确签名 应用程序有关。

    这是您在模拟器上运行时很可能不会遇到的问题,因此如果您仍想在真机上运行,​​请关注instructions 来解决此问题。

    如果您想在真实设备上运行,您必须提供xcodeConfigFile 功能,请检查here 包含的内容。

    【讨论】:

      【解决方案2】:

      这是我为解决它所做的,我假设你有正确的签名 id

      1) 进入 WebdriverAgentLib>Signing in 部分,取消勾选并再次勾选Automatic Signin 在下拉列表中选择正确的设备 ID

      2) 转到WebdriverAgentRunner>Signing in Section,取消勾选并再次勾选Automatic Signin 在下拉列表中选择正确的设备 ID

      3)转到钥匙串访问并删除任何过期的证书

      4) 再次构建

      【讨论】:

        猜你喜欢
        • 2017-07-15
        • 2016-06-18
        • 1970-01-01
        • 2017-08-03
        • 2014-08-03
        • 2020-02-02
        • 2019-09-30
        • 2016-12-17
        • 1970-01-01
        相关资源
        最近更新 更多