Appium遇到的问题(持续更新....)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Appium遇到的问题(持续更新....)相关的知识,希望对你有一定的参考价值。
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遇到的问题(持续更新....)的主要内容,如果未能解决你的问题,请参考以下文章