Table of contents
1.
Introduction
2.
Using Configured Desired Capability with Test Case Variables
2.1.
Creating a test case to test one language
2.2.
Creating a Test Suite to test different languages
3.
Use Custom Profiles in Desired Capabilities
4.
Frequently Asked Questions
4.1.
What is Katalon?
4.2.
Which web Driver is used by Katalon Studio?
4.3.
What happens when we change the browser locales in Chrome using Katalon Studio?
5.
Conclusion
Last Updated: Aug 13, 2025

Testing different browser locales in Chrome with Desired Capabilities in Katalon Studio

Author Nagendra
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

The Katalon platform offers testing solutions. It benefits teams of various sizes and testing maturity levels. Using Katalon, you can easily change the default language of your web browser.

This blog explains the details of Testing different browser locales in Chrome with Desired Capabilities in Katalon Studio.

Without further ado, let's get started.

Katalon Image

Using Configured Desired Capability with Test Case Variables

With the opening of the first Chrome window, Chrome establishes a default UI language. The Chrome driver still determines the default language from the Chrome browser. You can change browser locales using the command line.

Command

parameter chrome.exe—lang= es-ES  

 

This command will start Chrome in Spanish.

We will look into two potential methods for changing browser locales while testing:

  • Testing one specific language with a test case.
     
  • Testing different languages with a test suite.

Creating a test case to test one language

The following steps configures a test case with a specific browser locale:

  • Select File -> New -> Test case.
Steps Image
  • Create a new test case variable.
    • Go to your Test Case's Variables tab.
       
    • Select Add. The variable list now has a new row.
Steps Image
  • Put this value into the "locale" variable:
    • Name: locale
       
    • Type: String
       
    • Default Value: “es-ES”
Steps Image

We have the Default value as “es-ES”. This is the default value for the Spanish language.

  • Using Configured Desired Capabilities, change the Chrome default language settings.
    • Change your Test Case tab to the Script tab.
       
    • Insert the code from the list below into your test script. You can change the testing browsers' locales using this code.
       

Code:

import com.kms.katalon.core.configuration.RunConfiguration
Map prefs = [('intl.accept_languages') : locale]
RunConfiguration.setWebDriverPreferencesProperty("prefs", prefs)

 

Steps Image

The Test case is ready to run in the Spanish Language.

Creating a Test Suite to test different languages

The following steps configure a test case with a different browser locale:

  • Select File -> New -> Test Suite.
     
  • The command toolbar will appear. Click Add.
Steps Image
  • Select pre-configured test cases.
     
  • Select File -> New -> Test Data.
Steps Image
  • Select Data Type as Internal Data.
Steps Image
  • Enter the different languages for your browser.
     
Steps Image
  • On the Main page, Click on Show Data Binding.
     
  • You will get the final result as shown:
Steps Image

The Test Suite is ready to run in Different Languages.

Let's look into the details of Using Custom Profiles in Desired Capabilities.

Use Custom Profiles in Desired Capabilities

A Remote Server allows you to test several browser locales. You can change Chrome's default language by setting Custom Desired Capabilities.

The following steps create a custom profile:

  • Select Project -> Settings -> Desired Capabilities -> Custom.
Steps Image
  • The command Toolbar will appear. Click Add. 
     
  • Write the value name as French.
     
  • Select the value column. Click on More (...).
     
  • Select "Remote" as the Driver Name.
     
  • Click "More(...)" under Preferences.
Steps Image

The Driver Builder dialog box opens.

Fill the following data in the Dialog Box:

  • Remote Server URL: http://localhost:port/wd/hub
     
  • Remote Server Type: Selenium.
     
  • Click Add.
     
  • A New Dialog Box will appear.
     
  • Add the following details:

A new Dialog Box will appear. Add the following details:

  • Name: prefs
     
  • Type: Dictionary
     
  • Value: Select More (...). Click Add.
     

A new Dialog Box will appear. Add the following details:

  • Name: intl.accept_languages(*)
     
  • Type: String
     
  • Value: fr(**)
     

fr represents the French Language.

  • Click OK
     

You will get the following results:

Steps Image

Frequently Asked Questions

What is Katalon?

Katalon is an open source platform for automation testing software.

Which web Driver is used by Katalon Studio?

Katalon uses the Selenium WebDriver framework.

What happens when we change the browser locales in Chrome using Katalon Studio?

Changing the browser locales will change the Chrome browser's default language.

Conclusion

In this article, we have extensively discussed the details of Testing different browser locales in Chrome with Desired Capabilities in Katalon Studio.

We hope that the blog has helped you enhance your knowledge regarding Testing different browser locales in Chrome with Desired Capabilities in Katalon Studio. If you would like to learn more, check out our articles on Katalon, you can refer to our guided paths on the Coding Ninjas Studio platform to learn more about DSADBMSCompetitive ProgrammingPythonJavaJavaScript, etc. To practice and improve yourself in the interview, you can also check out Top 100 SQL problemsInterview experienceCoding interview questions, and the Ultimate guide path for interviews. Do upvote our blog to help other ninjas grow. Happy Coding!!

Thank You Image
Live masterclass