您的位置:首页 > 编程语言 > Python开发

python打开自已配置的firefox

2015-09-29 11:58 435 查看
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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: