How to add geolocation to an automation test in UnitTest on LambdaTest?

How to add geolocation to an automation test in UnitTest on LambdaTest?

Hi Helen,

If you want to run your automation test for a particular location in UnitTest Testing on LambdaTest, you can use the following code snippet:

desired_caps = {
            'LT:Options': {
                "build": "Python Demo",  # Change your build name here
                "name": "Python Demo Test",  # Change your test name here
                "platformName": "Windows 11",
                "selenium_version": "4.0.0",
                "geoLocation": "US"  
            },
            "browserName": "Chrome",
            "browserVersion": "98.0",
        }

Here’s the GitHub repo for the same: GitHub - Elmasekar/UnitTest-geolocation: A sample repo to help you add geolocation to an automation test in UnitTest on LambdaTest. Run your python automation test scripts on Lambdatest.