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

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