无法让appium启动iPhone simu

2024-05-15 05:09:46 发布

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

我写了一个简单的python脚本:

from appium import web driver
import unittest

desired_caps = {}
desired_caps['platformName'] = 'iOS'
desired_caps['platformVersion'] = '7.1'
desired_caps['deviceName'] = 'iPhone Simulator'
desired_caps['browserName'] = 'safari'

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
driver.get("www.google.com")

但在我执行脚本时,它得到了以下错误日志:

^{pr2}$

我的appium版本是:1.2.2 配置包括: 服务器地址:127.0.0.1端口:4723

有人能帮忙吗?在

谢谢


Tags: fromimport脚本webdriverunittestcapsios
1条回答
网友
1楼 · 发布于 2024-05-15 05:09:46

它找不到模拟器。你在用什么版本的Xcode?在

你能转到下面的目录吗?里面有7.1模拟器吗?在

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
  1. 默认情况下,Xcode6不附带7.1模拟器
  2. Appium目前不支持Xcode 6。您现在需要使用Xcode5。在

相关问题 更多 >

    热门问题