将firefox配置文件加载到selenium驱动程序

时间:2017-03-23 04:43:23

标签: python windows selenium firefox

我使用firefox -p创建了一个配置文件。当我运行代码时:

fp = webdriver.FirefoxProfile('C:/Users/Edgar/Google Drive/USC workspace/Network_Scanner/lsjz2vv9.projectProfile')
driver = webdriver.Firefox(fp)

Firefox已打开,但在配置文件lsjz2vv9.projectProfile中没有创建文件。那里唯一的文件是times.json。我主要对sessionstore-backups / recovery.js文件感兴趣

0 个答案:

没有答案
相关问题