Skip to content
Testsigma DOCS

Desired Capabilities

Geolocation Emulation for Localization Testing


The Geolocation Desired Capability sets the geographic location for web or mobile web apps during test executions. This capability is useful when testing location-specific features. This article discusses configuring the Geolocation Desired Capability on the Ad-Hoc Run page in Testsigma.


To set the geolocation, use the following desired capability:

geoLocation = “<Two-letter Country Code>“

geoLocation = “AR”

Below is a list of countries with their corresponding two-letter country codes that can be used in the value field for the Geolocation desired capability:

Country NameCountry Code
ArgentinaAR
AustraliaAU
AustriaAT
BelgiumBE
BrazilBR
BulgariaBG
CanadaCA
ChileCL
ChinaCN
CroatiaHR
Czech RepublicCZ
DenmarkDK
EgyptEG
FinlandFI
FranceFR
GermanyDE
GreeceGR
Hong KongHK
HungaryHU
IcelandIS
IndiaIN
IndonesiaID
IrelandIE
IsraelIL
ItalyIT
JapanJP
JordanJO
MalaysiaMY
MexicoMX
NetherlandsNL
New ZealandNZ
NorwayNO
PhilippinesPH
PolandPL
PortugalPT
RussiaRU
SingaporeSG
South AfricaZA
South KoreaKR
SpainES
SwedenSE
SwitzerlandCH
TaiwanTW
ThailandTH
TurkeyTR
UkraineUA
United KingdomGB
United StatesUS

Using Desired Capability to set the Location

Section titled “Using Desired Capability to set the Location”
  1. Click Run from Test Case Details page. Run Test Case

  2. On the Ad-Hoc Run overlay, click Desired Capabilities. AdHoc Run

  3. Enter geoLocation in the Key field, select String as Data type, and set the Value as per country’s country code. Desired Capability

  4. Click Run Now to execute the test case. Run Now