Skip to content

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.

License

Notifications You must be signed in to change notification settings

Riadayal/Pytest-incognito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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