- Mac
- Xcode
- Python3、pip3
- git clone https://github.com/facebook/WebDriverAgent.git
- ./Scripts/bootstrap.sh
- 打开
WebDriverAgent.xcodeproj
,在Xcode中设置好开发者apple id - 在Xcode中,Product -> Test,在手机上运行,在手机上打开一下刚安装的没有图标的WebDriverAgent,会自动关闭,然后在Xcode控制台会输出ServerURL: http://x.x.x.x:8100
- brew install imobiledevice
- iproxy 8100 8100
- 浏览器访问
http://localhost:8100/status
看到json就说明运行成功
pip3 install --pre facebook-wda
以微信读书为例。在微信读书中打开一本书,然后终端执行:
git clone https://github.com/huowenxuan/weread_auto
cd auto_touch
python3 weread_ios.py
- Python3、pip3
pip3 install uiautomator
在微信读书中打开一本书,然后终端执行:
git clone https://github.com/huowenxuan/weread_auto
cd auto_touch
python3 weread_android.py
打开趣头条app,点击小视频tab,执行:
python3 qutoutiao_android.py