v1.3.3
ADD:
touch
,swipe
接口新增相对坐标的支持- 例如点击中心点 touch((0.5, 0.5))
- 从右往左滑动 swipe((0.7, 0.5), (0.2, 0.5))
- 目前android/ios/win都支持
- windows新增了剪贴板相关的接口
get_clipboard
获取剪贴板内容,set_clipboard
设置剪贴板内容,paste
粘贴- 因此如果有大段文字需要输入,原本使用text接口将会一个一个输入,效率很低,现在可以使用
set_clipboard
设置到剪贴板之后,再使用paste
粘贴即可 - 剪贴板三个接口目前win/ios/android都支持了
- Android支持手动指定
touch_method
,来强制指定ADBTOUCH
, 或MINITOUCH
,MAXTOUCH
dev.touch_method = "ADBTOUCH"
FIX:
- Yosemite.apk更新,新增了判断输入法是否完全启动的接口,避免输入失败
- 修复了某些低版本iOS设备使用swipe接口会报错的问题(报错信息为:
Invalid parameter not satisfying: allAttributesForKey != nil
) - 修复了1.3.2版本引入的adb路径为None的bug
- 修复了部分安卓设备屏幕只显示一半,并且无法恢复的问题
ADD:
touch
,swipe
interfaces add support for relative coordinates- For example, click the center point touch((0.5, 0.5))
- Swipe from right to left swipe((0.7, 0.5), (0.2, 0.5))
- Currently supported by android/ios/win
- Windows has added some new clipboard-related interfaces
get_clipboard
gets the clipboard content,set_clipboard
sets the clipboard content,paste
pastes- Therefore, if there is a large section of text that needs to be entered, the original text interface will be entered one by one, which is very inefficient. Now you can use
set_clipboard
to set it to the clipboard, and then usepaste
to paste it. - The three clipboard interfaces are currently supported by win/ios/android.
- Android supports manually specifying
touch_method
to force specifyingADBTOUCH
, orMINITOUCH
,MAXTOUCH
dev.touch_method = "ADBTOUCH"
FIX:
- Yosemite.apk has been updated, adding an interface to determine whether the input method is fully started to avoid input failures.
- Fixed an issue where some lower version iOS devices would report an error when using the swipe interface (the error message is:
Invalid parameter not satisfying: allAttributesForKey != nil
) - Fixed the bug that the adb path introduced in version 1.3.2 is None
- Fixed the issue where the screen of some Android devices is only half displayed and cannot be restored