How to set Chrome's language with Java-Cucumber?

How to set Chrome’s language with Java-Cucumber?

Hello Tim- khorev,

You can add this addArguments() method used for setting the language to ‘en-CA’.

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--lang=en-CA");

For the list of other languages, you can refer here: http://www.lingoes.net/en/translator/langcode.htm