selenium.common.exceptions.WebDriverException: Message: Could not proxy command to remote server....

环境:appium 1.8.1 python 3.6
问题:appium1.8.1使用android_uiautomator查找元素,在capabilities列表中增加 'automationName': 'uiautomator2'字段,运行报错:selenium.common.exceptions.WebDriverException: Message: Could not proxy command to remote server. Original error: Error: read ECONNRESET
解决:执行下面两个命令,再次运行成功
adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test

你可能感兴趣的:(selenium.common.exceptions.WebDriverException: Message: Could not proxy command to remote server....)