我怎样才能运行我的硒浏览器驱动程序在Firefox的私人模式,而不是只是正常的Firefox?如何打开一个私人的Firefox窗口 - 硒
我试过以下,但并未奏效:
firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference("browser.privatebrowsing.autostart", True)
driver = webdriver.Firefox(firefox_profile=firefox_profile)
我认为这是在意见和问题,上述前,但它没有工作提出的问题。
[Python的/硒无痕/私有模式(可能的重复http://stackoverflow.com/questions/27630190/python-selenium-incognito-private-模式) –