Interface SupportsAppLocaleOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
public interface SupportsAppLocaleOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APP_LOCALE_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<AppLocale>
getAppLocale()
Get the locale for the app under test.default T
setAppLocale(AppLocale locale)
Sets the locale for the app under test.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
APP_LOCALE_OPTION
static final java.lang.String APP_LOCALE_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAppLocale
default T setAppLocale(AppLocale locale)
Sets the locale for the app under test. The main difference between this option and the above ones is that this option only changes the locale for the application under test and does not affect other parts of the system. Also, it only uses public APIs for its purpose. See https://github.com/libyal/libfwnt/wiki/Language-Code-identifiers to get the list of available language abbreviations. Example: {"language": "zh", "country": "CN", "variant": "Hans"}.- Parameters:
locale
- App locale data.- Returns:
- this MobileOptions, for chaining.
-
getAppLocale
default java.util.Optional<AppLocale> getAppLocale()
Get the locale for the app under test.- Returns:
- App locale data.
-
-