如何导入和导出 webdriver FireFox 配置文件?
我想做的是:
from selenium import webdriver
#here I want to import the FF profile from a path
if profile:
driver = webdriver.Firefox(profile)
else:
#this is the way I get the WebDriver currently
driver = webdriver.Firefox()
#doing stuff with driver
#Here I want to save the driver's profile
#so I could import it the next time