How to set custom language in Chrome irrespective of default language set in Agent machine ?
How to set custom language in Chrome irrespective of default language set in Agent machine ?
Windows systems with EN-US and EN-GB culture use English as the default language, and while executing the test Chrome picks this language and runs your test in the English language only.
There can be many situations where a user needs to test on multiple languages like Globalization testing, localization testing, etc. By default, Chrome will always push the test in the English language; however, Leapwork users can override this behavior using the Start options block.
Here are the steps to choose the test execution language in Leapwork:
- Open start web browser block
- Go to 'Start options' and set the option to --lang= de
Here --lang= is an option to receive language and de is the locale/culture. So if you want to set Chrome local language to the German language, then use ISO code "de". The text value --lang= de set in options will open Chrome with the German language when executed.
- Here is the example
For any clarification, please contact our Priority Support.