python打開自已配置的firefox

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)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章