r/SeleniumPython • u/andrewfromx • Jul 11 '23
Help DeprecationWarning: Setting a profile has been deprecated
I get this warning with:
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
options = Options()
options.profile = '/path/to/jenny-profile'
options.add_argument('-headless')
browser = webdriver.Firefox(options=options)DeprecationWarning: Setting a profile has been deprecated. Please use the set_preference and install_addons methods
But I can't seem to get the right new non deprecated install_addons methods to load the profile. The above code works and I'm using it in production because, wow, it works! But would love to solve this error soon. Thanks!