Appium問題解決方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.


背景

運行時代碼報錯:

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\\jdk1.8.0_131\\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

問題分析

該問題主要是證書簽名錯誤,猜測是用了新版appium裝了驅動之后,又換成舊版本的appium這個時候會出現兩者的簽名證書不一致導致認證錯誤

 

解決方案一

就是把appium-desktop換成新的,或者進入設備-應用管理-搜索 appium 相關程序,手動卸載掉再執行一遍腳本

 

解決方案二

還有一種解釋是運行appium-server時沒有足夠的權限,使用管理員去打開appium-server可以解決這個問題


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Appium(四) selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability appium 報錯:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Can't stop process; it's not currently runni... 解決:切換context時報錯selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command... Appium異常:An unknown server-side error occurred while processing the command. Original error: Could n appium報錯:An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET Win10上啟動UICrawler自動遍歷時報 "org.openqa.selenium.WebDriverException: An unknown server-side error occur red while processing the command. Original error: Could not sign with default certifi cate." python appium自動化報“Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server Appium報錯: An unknown server-side error occurred while processing the command. Original error: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission python+appium運行提示找不到adb.exe “An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in ["D:\\adt\\sdk;\\platform-tools\\adb.exe"” An unknown server-side error occurred while processing the command.處理
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM