男儿欲遂平生志,五经勤向窗前读。这篇文章主要讲述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
【Appium遇到的问题(持续更新....)】2、
推荐阅读
- Android 长按识别图中二维码 zxing
- Android控件之CalendarView 日历对话框
- Android开发中几种有用的的日历控件实现
- Java FileWriter类
- Java FilterInputStream类
- Java FileReader类
- Java FileDescriptor
- Java FilePermission类
- Java文件类