desired_caps = {}
desired_caps['platformName'] = devices["platformName"]
desired_caps['platformVersion'] = devices["platformVersion"]
desired_caps['deviceName'] = devices["deviceName"]
desired_caps['appPackage'] = devices["appPackage"]
desired_caps['appActivity'] = devices["appActivity"]
desired_caps['udid'] = devices["deviceName"]
desired_caps['automationName'] = "uiautomator2"
desired_caps["noReset"] = "True"
remote = "http://127.0.0.1:" + str(devices["port"]) + "/wd/hub"
driver = webdriver.Remote(remote, desired_caps)

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate. Original error Command '/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java -jar /usr/local/lib/node_modules/appium/node_modules/_appium-adb\@2.28.0\@appium-adb/jars/sign.jar /usr/local/lib/node_modules/appium/node_modules/_appium-uiautomator2-driver\@0.6.1\@appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-debug-androidTest.apk --override' exited with code 1

下面是尝试解决方案

请问下哪位遇到过这样到问题?


↙↙↙阅读原文可查看相关链接,并与作者交流