Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 867 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 867 Bytes

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