【发布时间】: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”。
【问题讨论】: