appium V1.5.x变化
2024-09-13 08:15:37
使用 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
最新文章
- 删除 TOMCAT 上次关闭遗留下来的 SESSION 缓存
- ORA-00988: missing or invalid password(s)
- libtool: link: `dftables.lo' is not a valid libtool object
- JS 和 Java 中URL特殊字符编码方式
- 基于jQuery标题有打字效果的焦点图
- 基于strpos()函数的判断用户浏览器方法
- WF工作流与管理类应用系统工作流需求实现的一些误区
- Xcode 7 warnings: object file was built for newer iOS version than being linked
- 怪胎:Android开发ImageView图片无法显示
- spring实现读写分离
- 关于Linode、Digitalocean、Vultr三款美国VPS服务商的用户体验
- 大项目小细节---onbeforeunload增强用户体验
- 用ActiveX 创建自己的comboBox 控件(一)
- ActiveMQ的安装与配置
- Discuz常见小问题-如何人为地添加用户并分配小组
- 24-[jQuery]-属性,文档,位置,筛选
- scss语法
- Linux 安装 MantisBT 详解
- C#做的在线升级小程序
- js数组的splice函数