How can I run my selenium web driver in firefox private mode instead of just normal firefox?
I tried the below but it hasn't worked:
firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference("browser.privatebrowsing.autostart", True)
driver = webdriver.Firefox(firefox_profile=firefox_profile)
I viewed the question asked before which is mentioned in the comment and above the question but it didn't work.