Pytest-incognito icon indicating copy to clipboard operation
Pytest-incognito copied to clipboard

A sample repo to help you run an automation test in Pytest in incognito mode on LambdaTest. Run your automation tests in Pytest in incognito mode on Lambdatest.

How to run an automation test in Pytest in incognito mode on LambdaTest

If you want to run you automation test in Pytest in incognito mode on Lambdatest, you can use the following steps. You can refer to sample test repo here.

Steps:

You can run a test in incognito mode by adding it in ChromeOptions in the conftest.py file. For Chrome:

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

Links:

LambdaTest Community