1、报错:
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
解决方案:添加:
desired_caps['newCommandTimeout'] =6000
self.driver.implicitly_wait(15)
2、报错:
Try to increase the 90000ms adb execution timeout represented by 'adbExecTimeout' capability
解决方案:添加:desired_caps['adbExecTimeout'] =200000
3、报错:
error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
解决方案:
需要用命令卸载Appium Settings
adb uninstall io.appium.uiautomator2.server.test
然后在重新执行就可以了。
网友评论