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

Posted xiyuan2016

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决方案[XCUITest] WDA is not listening at 'http://localhost:8100/'相关的知识,希望对你有一定的参考价值。

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/'的主要内容,如果未能解决你的问题,请参考以下文章

WebDriverException: Message: A session is either terminated or not started

iOS自动化之启动多个WDA

iOS自动化之启动多个WDA

解决Zookeeper报错:conf is not executed because it is not in the whitelist的解决办法

关于idea部署项目为什么抛出####:war: Server is not connected. Deploy is not available的错误?

module is not defined vue怎么解决