Appium breaking change 踩坑记

发表于:2019-3-11 13:46

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:Young    来源:MobAuto

  最近, Appium Server 端已经更新到1.8.0, client端更新到6.0.0. 先看一下breaking changes: https://github.com/appium/java-client/pull/881/files
  从4.12到5.0.3,已经deprecated很多常用的swipe/scroll/tap ,埋过一次大坑,然鹅从5.0.3到6.0.0, 一如既往的埋坑。
  Breaking change
  1. constructors of
  io.appium.java_client.pagefactory.AppiumElementLocatorFactory
  io.appium.java_client.pagefactory.AppiumFieldDecorator
  io.appium.java_client.pagefactory.AppiumElementLocator
  使用PO的page 初始化的方法都需要修改
  2. TouchAction使用方法改变
  old methods of the TouchActions were marked @Deprecated
  new methods which take new options
  看过源码,发现增加
  AndroidTouchAction 和IOSTouchAction以及其欲实现方法所需要的参数类
  修改如下:
  3. 新增  flag
  RELAXED_SECURITY("--relaxed-security"),
  使用方法:
  该参数为了解决:Android 直接执行adb shell 命令
  Add a possibility to include stderr output into adb:shell call (see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/android-shell.md#supported-arguments)

     上文内容不用于商业目的,如涉及知识产权问题,请权利人联系博为峰小编(021-64471599-8017),我们将立即处理。
精选软件测试好文,快来阅读吧~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号