【问题标题】:Appium: Could not find a device to launchAppium:找不到要启动的设备
【发布时间】:2017-01-04 16:46:32
【问题描述】:

我已更新 Appium 以使用 Xcode 8.2 运行,现在我的测试无法启动模拟器并出现以下错误:

WebDriverException: Message: A new session could not be created. (Original error: Could not find a device to launch. 
You requested 'iPhone (10.2 Simulator)', but the available devices were: ["iPad Air (10.2) [4002EEFA-F56A-4A1E-850B-C3BF4FD773EA] (Simulator)","iPad Air 2 (10.2) .....

我的 Appium 设置如下所示:

self.driver = webdriver.Remote(
        command_executor='http://127.0.0.1:4723/wd/hub',
        desired_capabilities={
            'app': app,
            'platformName': 'iOS',
            'deviceName': 'iPhone 7 plus',
            'platformVersion': '10.2'
        })

错误消息显示设备类型的奇怪字符串:“iPhone”而不是“iPhone 7 plus”。

【问题讨论】:

    标签: python ios appium


    【解决方案1】:

    从 Appium 1.6.3 降级到 1.6 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-25
      • 2016-08-21
      • 2014-09-07
      • 2015-07-21
      • 1970-01-01
      • 2016-10-23
      • 2016-06-16
      • 2019-04-08
      相关资源
      最近更新 更多