Skip to content

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

Releases

No releases published

Packages

No packages published