如何在firefox私有模式下运行selenium web驱动程序,而不仅仅是普通的firefox?在
我尝试了以下方法,但没有奏效:
firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference("browser.privatebrowsing.autostart", True)
driver = webdriver.Firefox(firefox_profile=firefox_profile)
我看了前面的问题,这个问题在评论和问题上面都提到过,但是没有起作用。在
您可以使用
FirefoxBinary
和add_command_line_options
:相关问题 更多 >
编程相关推荐