将firefox配置文件加载到selenium dri

2024-10-02 12:23:40 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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

Firefox打开,但没有在配置文件lsjz2vv9.projectProfile中创建文件。唯一的文件是时代.json. 我主要对sessionstore备份感兴趣/恢复.js文件


Tags: 文件代码配置文件googledrivefirefoxuserswebdriver

热门问题