Replies: 1 comment
-
Not really. activateApp is supposed to be used to active a running app, e.g. bring it to foreground. However, in order to pass the above command line arguments, containing app language/locale options, it is necessary to stop it and start anew. activeApp does have a side effect which starts the app when it's already running, but it's just a side effect and it must not be abused for different purposes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to change the language for an iOS application after the appium session has already started. According to the appium XCUITest documentation that its possible to do this by executing mobile: launchApp with the -AppleLanguage and the -AppleLocale flags. Setting the appium language and locale capabilities also changes the language of the app under test. However, it also looks like it should also be possible to use the activateApp(, ).
For the life of me I cannot figure out how to instantiate the BaseActivationApplicationOptions to pass in these flags. There don't appear to be any references to BaseActivationApplicationOptions anywhere else in the java client, so is it even possible to use activateApp to set the language using the activateApp call directly or is the only way to do this by passing in the flags to executeScript?
Beta Was this translation helpful? Give feedback.
All reactions