RobotFramework手机端自动化环境问题: —Weditor(手机端找元素工具)与UIautomator2版本冲突问题
安装UIautomator2 pip install uiautomator2==0.2.2
安装weditor: Open cmd, input command: pip install --pre weditor weditor安装后,weditor版本号为0.2.3 uiautomator版本自动升级到2.0.0,(weditor支持的uiautomator2版本至少大于等于0.2.3)
eclipse此时无法正确导入版本号为2.0.0的uiautomator2library
解决方案: 安装0.1.2版本的weditor pip install weditor==0.1.2
但在使用weditor工具时,必须在手机上提前打开uiautomator2(ATX) 并且启动weditor的cmd 窗口不能关闭 (启动命令: python -m weditor)