1、手機必須安裝WebDriverAgent
兩種安裝方式:
1.通過xcode安裝
2.通過命令安裝
安裝方式:https://testerhome.com/topics/7220
2、安裝tidevice庫, 支持python3.6+
3、安裝facebook-wda庫,主要用於iOS自動化
windows端啟動WebDriverAgentRunner:
1、需要安裝itools連接蘋果手機
2、終端運行WebDriverAgentRunner命令(三種):
1.tidevice xctest
2.tidevice xctest -B com.facebook.WebDriverAgentRunnerhaohantest.xctrunner
3.tidevice wdaproxy -B com.facebook.WebDriverAgentRunnerhaohantest.xctrunner --port 8100 (推薦)
3、終端運行命令:weditor -- 啟動weditor