求教:Appium DesiredCapabilities 設定語言和 地區,執行程式報錯:Original error: Failed to set language: fr and country: undefined

louie發表於2020-08-28

需求
測試國際化,執行自動化測試指令碼前,需要設定語言

現狀
按照官方文件,設定了語言,執行程式報錯

報錯資訊
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Failed to set language: fr and country: undefined
at getResponseForW3CError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)
at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37)
at process._tickCallback (internal/process/next_tick.js:68:7)

官網文件

程式

相關文章