最近, 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"),
使用方法:
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),我们将立即处理。