How to set timezone to an automation test in UnitTest on LambdaTest?

How to set timezone to an automation test in UnitTest on LambdaTest?

Hi Michael,

If you want to run your automation test for a particular timezone in UnitTest 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",
                "timezone": "UTC-05:00"
            },
            "browserName": "Chrome",
            "browserVersion": "98.0",
        }

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