免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1999 | 回复: 0
打印 上一主题 下一主题

appium连接出错 [复制链接]

论坛徽章:
1
戌狗
日期:2014-05-28 16:19:09
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-08-06 16:20 |只看该作者 |倒序浏览
本帖最后由 angel725 于 2017-08-06 18:28 编辑

使用appium测试模拟器,出错
  1. Traceback (most recent call last):
  2.   File "H:/PycharmProjects/app/app.py", line 11, in <module>
  3.     driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
  4.   File "E:\Python\Python35-32\lib\site-packages\appium\webdriver\webdriver.py", line 36, in __init__
  5.     super(WebDriver, self).__init__(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
  6.   File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 98, in __init__
  7.     self.start_session(desired_capabilities, browser_profile)
  8.   File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 188, in start_session
  9.     response = self.execute(Command.NEW_SESSION, parameters)
  10.   File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 256, in execute
  11.     self.error_handler.check_response(response)
  12.   File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
  13.     raise exception_class(message, screen, stacktrace)
  14. selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "E:\Android\sdk\platform-tools\adb.exe -s emulator-5554 install "F:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk""
  15. Failed to install F:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.]
  16. )
复制代码


以前也试过代码是可以用的,
应该是在连接模拟器上出了问题。
环境是接教程做的,实在找不出哪出问题了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP