-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add localeScript capability to set script in locale #460
Conversation
lib/android-helpers.js
Outdated
if (!await adb.ensureCurrentLocale(language, country)) { | ||
throw new Error(`Failed to set language: ${language} and country: ${country}`); | ||
if (!await adb.ensureCurrentLocale(language, country, script)) { | ||
let message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use a ternary operator here
@KazuCocoa Might it be that something has happened to Unlock script after the SDK tools version has been bumped for Appium Settings: https://travis-ci.org/appium/appium-android-driver/jobs/450112540 ? |
mmm, in my locale, below command worked... let me see.
|
Maybe it does not work with API 20 emulator (the one used for this job)? |
API 19 and 21, arm emulator also worked 🤔
|
depends on appium/appium-adb#372
After merging the PR, we should update the module.
In this PR, I've introduced
localeScript
capability to setHans
inzh-Hans-CN
. The middle one is namedscript
in the Locale term. It only available in Android so far.