Interface SupportsLocaleScriptOption<T extends BaseOptions<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 org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • 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.