1. 程式人生 > >【解決方案】[XCUITest] WDA is not listening at 'http://localhost:8100/'

【解決方案】[XCUITest] WDA is not listening at 'http://localhost:8100/'

分享 xcod ppi server drive 發現 lis highlight web

1. 使用Xcode 編譯 WebDriver 發現端口為:serverurlhere->http://手機ip:0 <-serverurlhere

2. 解決方案:

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id =$(idevice_id -l) test

顯示結果如下:

2018-01-03 15:46:37.486914 + 0800 WebDriverAgentRunner-Runner [4222:1622132]

2018-01-03 15:46:37.536376 + 0800 WebDriverAgentRunner-Runner [4222:1622132] ServerURLHere-> http://192.168.31.76:8100 <-ServerURLHere

3. 改寫代碼:

appium-xcuitest-driver/WebDriverAgent/WebDriverAgentLib/Routing/FBWebServer.m

技術分享圖片

將如上的端口號改為8100

【解決方案】[XCUITest] WDA is not listening at 'http://localhost:8100/'