Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selenium web driver does not open firefox with custom prefrences

Trying to open firefox with already installed addons using selenium 2 but always opens with default firefox profile having predefined preferences

from selenium import webdriver
driver = webdriver.Firefox()

The above lines of code initiates firefox with default profile. How to make it initiate with user specified preferences?

like image 714
Raghavendra Avatar asked Feb 02 '26 01:02

Raghavendra


1 Answers

You can launch it with a custom profile using something like:

profile = FirefoxProfile("path.to.profile")
driver = webdriver.Firefox(profile)
like image 90
Arran Avatar answered Feb 04 '26 15:02

Arran