How to set browser specific options in UnitTest on LambdaTest?

Can I set browser specific options in UnitTest?

Hi Richard,

If you want to set browser specific options for a UnitTest test automation on Lambdatest, you can use the following steps:

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",
                "chromeOptions" : {
                "args" : ["incognito"]  # ChromeOption to start chrome in incognito mode
                
            },
            "browserName": "Chrome",
            "browserVersion": "98.0",
        }

You can refer to sample test repo here.