For setting the location of the Test Environment where the Tests are run, we can pass Chrome CLI arguments. In order to set the same in Testsigma, we need to just add a pair of Desired Capabilities in the Execution Environment. Please check the below article for more details on adding Desired Capabilities - How to use Desired Capabilities in Testsigma?



Google Chrome

Below given are the Desired Capabilities you need to add in Execution Configuration to set the location:

Name
Data Type
Value
goog:chromeOptions
String
{ "profile.default_content_setting_values.geolocation": 1 }
geolocation
String
51.50735, -0.12776, 100


You need to keep the first row item as it is.

In the second row item, the Value corresponds to the parameters latitude, longitude and altitude, respectively. 

The above given value i.e 51.50735, -0.12776, 100 is for 'Trafalgar Square, London'.


Similarly, the value for 'Central Park, NYC, USA' is 40.783840, -73.965550, 33


Firefox

Below given are the Desired Capabilities you need to add in Execution Configuration to set the location:

Name
Data Type
Value
firefoxprofile
String
{"geo.prompt.testing": true,
"geo.prompt.testing.allow": true,
"geo.enabled": true,
"geo.wifi.uri": "data:application/json, 
{\"location\": {\"lat\": 34.052235, \"lng\": -118.243683}, \"accuracy\": 100.0}"
}


The Value in location under geo.wifi.uri corresponds to the parameters latitude, longitude and accuracy. 

The above given value i.e 34.052235, -118.243683, 100 is for 'Downtown, Los Angeles, California 90012, United States'.

Similarly, the value for 'Central Park, NYC, USA' is '40.783840, -73.965550, 33'



You may use the below website for getting the latitude and longitude for your desired location from the world map
http://www.mapcoordinates.net/en

Also, we can use the below site to check your current location
https://mycurrentlocation.net/