I am trying to change the locale of my Chrome Webdriver I use in my Geb tests. My Chrome is normally running using a en
locale. For some tests I need to request a german version of a website.
Here is what I did in my GebConfig.groovy
.
//GebConfig.groovy
driver = {
ChromeOptions options = new ChromeOptions()
options.addArguments("--lang=de")
options.addArguments("--start-maximized")
new ChromeDriver(options)
}
The option --lang=de
does not seem to affect the chrome during the test, since the website still responds with english content.
Am I missing something?