Appium Appium 只支持 4.2 以上的系统么?

jyzwmz · 2014年03月16日 · 最后由 回复于 2015年09月01日 · 1096 次阅读

D:\download\appium\appium-master\sample-code\examples\python>python android_cont
acts.py
Traceback (most recent call last):
File "android_contacts.py", line 17, in
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
File "D:\Python27\lib\site-packages\selenium-2.40.0-py2.7.egg\selenium\webdriv
er\remote\webdriver.py", line 71, in init
self.start_session(desired_capabilities, browser_profile)
File "D:\Python27\lib\site-packages\selenium-2.40.0-py2.7.egg\selenium\webdriv
er\remote\webdriver.py", line 113, in start_session
'desiredCapabilities': desired_capabilities,
File "D:\Python27\lib\site-packages\selenium-2.40.0-py2.7.egg\selenium\webdriv
er\remote\webdriver.py", line 164, in execute
self.error_handler.check_response(response)
File "D:\Python27\lib\site-packages\selenium-2.40.0-py2.7.egg\selenium\webdriv
er\remote\errorhandler.py", line 164, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'A new session could no
t be created. (Original error: Android devices must be of API level 17 or higher
. Please change your device to Selendroid or upgrade Android on your device.)'

共收到 3 条回复 时间 点赞

低版本的请用 Selendroid

4.1 也是支持的 官方使用了 api17 的 sdk 所以有可能个别地方不能完支持 4.1 我自己测试过 4.1 一直都很好 没发现问题 appium 对 4.1 以下的支持使用 selendroid 实现的

#2 楼 @seveniruby 请问 4.1,4.2 的 xpath 怎么写,貌似跟 4.3 以上版本有出入啊

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册