Hello,
I’ve got some trouble when trying to change language/locale through Robot Framework including Appium Librabry
Appium server : Appium v1.15.1 (desktop)
robotframework-appiumlibrary 1.5.0.4
My script is launched this way : robot --variable LANGUAGE:en --variable LOCALE:GB ./myscript.robot
=> returned error “Original error: Failed to set language: Languages and country: GB”
If i change language/locale it works:
robot --variable LANGUAGE:es --variable LOCALE:ES ./myscript.robot
robot --variable LANGUAGE:fr --variable LOCALE:FR ./myscript.robot
It seems that the use of language “en” is the root cause
here’s Appium logs where “en” is replaced by “Languages” :
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {
[debug] e[35m[BaseDriver]e[39m “alwaysMatch”: {
[debug] e[35m[BaseDriver]e[39m “platformName”: “Android”,
[debug] e[35m[BaseDriver]e[39m “appium:platformVersion”: “9”,
[debug] e[35m[BaseDriver]e[39m “appium:automationName”: “UiAutomator2”,
[debug] e[35m[BaseDriver]e[39m “appium:language”: “Languages”,
[debug] e[35m[BaseDriver]e[39m “appium:locale”: “GB”
[debug] e[35m[BaseDriver]e[39m },
thanks for help