app appium 出现问题和解决方法,个人笔记。
1.appium 出现 error: Couldn't start Appium REST http interface listener. Requested port is already in use. Please...报错解决办法:
端口被占用了,在任务管理器里面把node结束就可以了。
2. info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not find a connected Android device.)","origValue":"Could not find a connected Android device."},"sessionId":null}
后来发现,原因是因为我在cmd里面开了adb,adb devices等命令;再执行adb kill-server 来关闭adb服务,然后关闭cmd窗口。再次打开appium desktop 后就可以了!所以我怀疑可能是appium-desktop 在start session的时候会再开一个adb服务,所以就会一直杀5037端口的已经开着的adb。
3.selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. (Original error: Requested a new session but one was in progress)
Appium的setting勾选Override Existing Session
网友评论