How to set browser-specific options in Pytest on LambdaTest?

Let me know the procedure to set browser-specific options in Pytest on LambdaTest.

Hello Devan,

Yes, you can set browser-specific options in Pytest on LambdaTest.

The following is an example on how to set Chrome specific options using chromeOptions:

> capabilities = {
>        "build": "Sample PY Build",
>        "platformName": "Windows 11",
>        "browserName": "Chrome",
>        "browserVersion": "latest",
>        "chromeOptions" : {
>                "args" : ["incognito"]  # ChromeOption to start chrome in incognito mode
>  }
> }

You can download and configure the given GitHub repo: