How to start browser in incognito window using Python-UnitTest?

How to start browser in incognito window using Python-UnitTest?

Hello Emma-crepeau,

You can use chromeOptions to start chrome in incognito mode:

desired_cap["chromeOptions"] = {}
desired_cap["chromeOptions"]["args"] = ["incognito"]