Interface SupportsLocaleScriptOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsLocaleScriptOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCALE_SCRIPT_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getLocaleScript()
Get canonical name of the locale to be set for the app under test.default T
setLocaleScript(java.lang.String localeScript)
Set canonical name of the locale to be set for the app under test, for example zh-Hans-CN.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
LOCALE_SCRIPT_OPTION
static final java.lang.String LOCALE_SCRIPT_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLocaleScript
default T setLocaleScript(java.lang.String localeScript)
Set canonical name of the locale to be set for the app under test, for example zh-Hans-CN. See https://developer.android.com/reference/java/util/Locale.html for more details.- Parameters:
localeScript
- is the language abbreviation.- Returns:
- this MobileOptions, for chaining.
-
getLocaleScript
default java.util.Optional<java.lang.String> getLocaleScript()
Get canonical name of the locale to be set for the app under test.- Returns:
- Locale script value.
-
-