firefox自已配置文件:
1.CMD,找到安裝目錄,運行 firefox.exe -ProfileManager -no-remote
2.點擊“start firefox"
3.在新啓動的firefox中安裝自已需要的配置。 安裝某些插件、去掉某些彈出廣告的工具欄
參考:http://lijingshou.iteye.com/blog/2085276
使用自已的配置啓動firefox:
#配置文件
profile=webdriver.FirefoxProfile(r"C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profiles\znfzhqgh.fire_fox")
self.driver = webdriver.Firefox(profile)