I set up Firefox's profile and launched the driver with that profile, after that, I want to know how to change some preferences on that profile multiple times, or how to change the profile after launching the driver? here is my code for setting up the profile:
profile = webdriver.FirefoxProfile()
profile.set_preference('browser.download.folderList', 2)
profile.set_preference('browser.download.manager.showWhenStarting', False)
profile.set_preference('browser.helperApps.alwaysAsk.force', False)
profile.set_preference('browser.download.dir', 'D:\\Workspace\\Res')
profile.set_preference('browser.helperApps.neverAsk.saveToDisk', "application/x-7z-compressed")
driver = webdriver.Firefox(profile, executable_path=r"C:\geckodriver\geckodriver.exe")