Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing a firefox profile to remote webdriver firefox instance not working

I'm trying to start up a remote webdriver instance of Firefox and pass in a profile.

profile = webdriver.FirefoxProfile()
profile.set_preference("browser.download.folderList","2")
self.webdriver = webdriver.Remote(desired_capabilities=webdriver.DesiredCapabilities.FIREFOX,browser_profile=profile)

this is not working. If I pass it into the Firefox webdriver instance it works fine

profile = webdriver.FirefoxProfile()
profile.set_preference("browser.download.folderList","2")
self.webdriver = webdriver.Firefox(firefox_profile=profile)

Is there a bug? I'm using Firefox 9 and Selenium 2.16

like image 639
Bob Evans Avatar asked Jan 06 '12 17:01

Bob Evans


1 Answers

So this was either a bug with Selenium or Firefox that has been fixed. Problem is that browser.download.folderList is an integer, so I changed it 2 to int and it works

like image 186
Bob Evans Avatar answered Oct 19 '22 03:10

Bob Evans