appium V1.5.x变化
使用 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 可以看粗,主要有以下变化
- Deprecate server arguments that are also desired capabilities. Instead, add a
--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 参数
- Remove long-deprecated
name
locator strategy 废除findByName 的定位方式 大坑
iOS
- add Tapster support for some more touch methods
- iPhone 6 + 6S support
- iOS 9.3 support
Android
- enable navigating to an android URI via the set url driver methods, e.g., driver.get('content://contacts/people/1')
- fix some adb issues in Windows (e.g.,
signWithCustomCert
, sdk binary names) - fix issue with UIWatcher ssl certificate errors
- if you want to install all chromedrivers, use --chromedriver-install-all; if you want to install a specific chromedriver version, use --chromedriver-version="$VER"
driver.closeApp
no longer runs through the shutdown routine; it simply force-stops the app- The
ANDROID_ADB_SERVER_PORT
environment variable has been removed in favor of theadbPort
desired capability, which does the same thing.
这里一定要留意,如果之前写的有使用findByName,千万不要急着更新到1.5
转载请注明出处:http://www.cnblogs.com/tobecrazy/

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?