1. socket hang up
頻繁執行腳本時,或者批量執行unittest用例,可能會出現如下報錯:
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
嘗試過的解決辦法有:
1).重啟手機,之后沒有出現
或者
2).卸載appium,卸載app ,再重新安裝appium,安裝app,運行之后沒有報錯
請參考https://testerhome.com/topics/11403?locale=en
尋求根本解決辦法中
2. Add `clearSystemFiles` capability if wanted.
重新卸載appium再安裝 可以運行了。