Change browser language and try different languages

How to change browser language and try different languages each test suite.

Maybe can we try with Selenium parameters?

I tried something like this:

but it doesn’t work obviously.

I need it to change browser languages also for trying out date/time format.

How to?

image.png

Hi,
You should try as below:

* Steps Details:
- Navigate to Settings/Execution/Web UI/Chrome
- Adding “args” with Type = “List”
- At Value column, press three dot button […]
- “List Property Builder” open, Adding an item with Type = “String” and Value = “–lang=es”
- Save the settings and try again

2017-12-27 09_33_58.png

1 Like

I have tried the above steps to change the browser language but it’s not working. Is there any other way of changing the browser language setting in Katalon Studio?

i have following your step, but still it’s not working…
plz given me suggestion

Navigate to Settings/Execution/Web UI/Chrome
- Adding “args” with Type = “List”
- At Value column, press three dot button […]
- “List Property Builder” open, Adding an item with Type = “String” and Value = “–lang=es”
- Save the settings and try again

sa ethan said:

i have following your step, but still it’s not working…
plz given me suggestion

Navigate to Settings/Execution/Web UI/Chrome
- Adding “args” with Type = “List”
- At Value column, press three dot button […]
- “List Property Builder” open, Adding an item with Type = “String” and Value = “–lang=es”
- Save the settings and try again

idea??

Dear Dino,
it’s works with me using the provided method
Navigate to Settings/Execution/Web UI/Chrome
- Adding “args” with Type = “List”
- At Value column, press three dot button […]
- “List Property Builder” open, Adding an item with Type = “String” and Value = “–lang=es”

According to this:
https://productforums.google.com/forum/#!topic/chrome/L_lzgshpWbY

At least for Chrome’s current design, the UI language is controlled by the first/main Chrome window that is open. More specifically, the UI language is controlled by the first Chrome window for the root/base “user data directory”. The default “user data directory” is:
C:\Users_YOUR-USERNAME_\AppData\Local\Google\Chrome\User Data
So if you already have Chrome opened in English UI, even if you start another Chrome using “chrome --lang=de” it will still use English UI because the English Chrome window is already opened. Conversely, if the German UI Chrome was the first window opened, all subsequent Chrome windows will be German UI as well.

This may have something to do with you.