from selenium import webdriver import random import os directory = '/home/user/ffadns/' files = os.listdir(directory) fp = webdriver.FirefoxProfile() def randaddon(): addon = directory + str(random.choice(files)) return addon fp.add_extension(randaddon()) fp.add_extension(randaddon()) fp.add_extension(randaddon()) driver = webdriver.Firefox(fp) driver.get("http://ya.ru") Everything works fine addons are put, but after closing the browser they are no longer there, that is, they are stored while the script is running. How to make these addons saved in profiles?
When installing add-ons, as I understand it, they are written to files that are on the screen. Either there is some solution that I do not see, or you need to prescribe the necessary info for installed addons in the script. You can do without
add_extension And immediately write addons in profiles.
