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)


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