APP自动化,appium获取toast报错

加上这个就报错 'automationName':'uiautomator2'
报错信息:
D:\AdminWindows\Documents\SoftwareTest\test\venv\Scripts\python.exe D:/AdminWindows/Documents/SoftwareTest/test/APPp/toast.py
Traceback (most recent call last):
File "D:/AdminWindows/Documents/SoftwareTest/test/APPp/toast.py", line 14, in
driver=webdriver.Remote('http://127.0.0.1:4723/wd/hub',des)
File "D:\AdminWindows\Documents\SoftwareTest\test\venv\lib\site-packages\appium\webdriver\webdriver.py", line 147, in init
super(WebDriver, self).__init__(
File "D:\AdminWindows\Documents\SoftwareTest\test\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "D:\AdminWindows\Documents\SoftwareTest\test\venv\lib\site-packages\appium\webdriver\webdriver.py", line 227, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters)
File "D:\AdminWindows\Documents\SoftwareTest\test\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "D:\AdminWindows\Documents\SoftwareTest\test\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
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 ''C:\Program Files\Java\jdk180\bin\java.exe' -jar 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-adb\jars\sign.jar' 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' --override' exited with code 1

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐