You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Mask sensitive information in console logs](#mask-sensitive-information-in-console-logs)
69
69
*[Secure Connection](#secure-connection)
70
+
*[Browser language and locale](#browser-language-and-locale)
70
71
*[Building the images](#building-the-images)
71
72
*[Build the images with specific versions](#build-the-images-with-specific-versions)
72
73
*[Upgrade browser version in the images](#upgrade-browser-version-in-the-images)
@@ -1278,6 +1279,36 @@ The self-signed certificate also needs to be trusted by the client (add to syste
1278
1279
1279
1280
Refer to sample: [`docker-compose-v3-full-grid-secure.yml`](docker-compose-v3-full-grid-secure.yml)
1280
1281
1282
+
## Browser language and locale
1283
+
1284
+
Different browsers have different ways to set the language and locale from binding.
1285
+
1286
+
### Firefox
1287
+
1288
+
Firefox can be configured to use a specific language and locale by setting the profile preference when create WebDriver from binding. In addition, language pack need to be installed as add-on for browser UI language to take effect. For example, to set the browser language and locale to `vi-VN`, you can use the following steps:
1289
+
1290
+
Get the latest Firefox language pack for the desired language e.g. https://download.mozilla.org/?product=firefox-langpack-latest-SSL&lang=vi. Then, you can install the language pack as an add-on when creating the RemoteWebDriver instance.
There is a [script](NodeFirefox/get_lang_package.sh) to get all available language packs for a given Firefox version. You can run the script to get the language packs to your source. For example:
Or, you can mount the container directory `/home/seluser/firefox/distribution/extensions` to host directory to access packs were pre-built in the container for using in your test script.
0 commit comments