只有python 3.5.0 以上
安装参考:https://github.com/openatx/weditor
仅支持谷歌浏览器
安装weditor: pip3 install --upgrade weditor
检测输入:weditor
检测正确后 创建桌面:weditor --shortcut
常用快捷键:
Hotkeys(Both Mac and Win)
Right click screen: Dump Hierarchy Hotkeys
(only Mac)
Command+Enter: Run the whole code
Command+Shift+Enter: Run selected code or current line if not selected Hotkeys(only Win)
Ctrl+Enter: Run the whole code
Ctrl+Shift+Enter: Run selected code or current line if not selected
另:
1.升级python
2.下载uiautomator2 pip install --upgrade uiautomator2 python -m uiautmator2 init
3.下载weditor pip install --upgrade weditor python -m weditor
- 单独启动weditor 获取不了 客户端信息
只有先启动uiautomator2 再启动weditor才可以
5 . uiautomator2 手机端会对应下载一个软件ATX 运行完后要主动关掉,只Ctrl+C只会关闭weditor,不会关闭uiautomator,这样会导致appium启动失败或者基于appium的framework 无法启动