码迷,mamicode.com
首页 > 移动开发 > 详细

Appium遇到的问题(持续更新....)

时间:2017-09-11 18:21:01      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:host   web   .com   ram   ons   tar   device   driver   and   

Python版:

1、运行Appium遇到的错误:此问题是由于JDK版本要在1.7及以上。

Android开发要求。

A new session could not be created. 
C:\Python27\python.exe D:/Demo/temp/appium.py
Traceback (most recent call last):
  File "D:/Demo/temp/appium.py", line 3, in <module>
    from appium import webdriver
  File "D:\Demo\temp\appium.py", line 14, in <module>
    driver = webdriver.Remote(http://localhost:4723/wd/hub, desired_caps)
  File "C:\Python27\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 140, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "C:\Python27\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 229, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Python27\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: No app set; either start appium with --app or pass in an app value in desired capabilities, or set androidPackage to launch pre-existing app on device)


Process finished with exit code 1

 

2、

Appium遇到的问题(持续更新....)

标签:host   web   .com   ram   ons   tar   device   driver   and   

原文地址:http://www.cnblogs.com/yhleng/p/7505616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!