使用 npm安装 appium之后,会发现已经进入1.5
[Appium] Welcome to Appium v1.5.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
npm -g install appium
那么问题就来了,1.5 究竟有什么变化?
从官方的change list: https://github.com/appium/appium/releases 可以看粗,主要有以下变化
--default-capabilities
argument which takes a JSON string of capabilities that will be the default for any session. E.g., --default-capabilities ‘{"launchTimeout": 60000}‘ 增加使用JSON字符串作为sever 参数
name
locator strategy 废除findByName 的定位方式 大坑signWithCustomCert
, sdk binary names)driver.closeApp
no longer runs through the shutdown routine; it simply force-stops the appANDROID_ADB_SERVER_PORT
environment variable has been removed in favor of the adbPort
desired capability, which does the same thing.这里一定要留意,如果之前写的有使用findByName,千万不要急着更新到1.5
原文:http://www.cnblogs.com/tobecrazy/p/5256272.html