Python selenium imports my regular firefox profile (add-ons)

I tried to connect my add-ons to my driver (as in webdriver.Firefox (profile)). I do not know how to import (or, if at all possible) my regular Firefox profile. One, I suppose, contains all my additions.

Help is really needed.

Besides solving (if available) an explanation of why my add-ins don't exist on selenium web server can be a nice touch.

Many thanks!

+4
source share
1 answer

If you do this and install path_to_my_profilewhere your regular profile resided, then Selenium should use your profile:

from selenium import webdriver
from selenium.webdriver.firefox.webdriver import FirefoxProfile

profile = FirefoxProfile(path_to_my_profile)
driver = webdriver.Firefox(profile)

, , , Selenium. , Selenium , , FirefoxProfile None , " Firefox, ".

, , Selenium ( ), . .

+11

All Articles