1

I recently upgraded from Firefox 16 to 29 Selenium 2.33 to 2.43

The previous set up is working fine but after upgradation I see it is hanging at the beginning step itself:

firefoxprofile = webdriver.FirefoxProfile(profile_directory = firefoxProfilePath)
firefoxprofile.set_preference('webdriver_assume_untrusted_issuer', False)
firefoxprofile.set_preference('webdriver_accept_untrusted_certs', True)
firefoxprofile.set_preference('browser.download.folderList', 2) # custom location
firefoxprofile.set_preference('browser.download.manager.showWhenStarting', False)
downloadLocation = os.path.join(os.getcwd(), 'results', config.IDL_IP)                           
firefoxprofile.set_preference('network.proxy.type', 0)
firefoxprofile.set_preference('browser.download.dir', downloadLocation)
firefoxprofile.set_preference('browser.helperApps.neverAsk.openFile', downloadFormat)
firefoxprofile.set_preference('browser.helperApps.neverAsk.saveToDisk', downloadFormat)
firefoxprofile.update_preferences()

firefoxdriver = webdriver.Firefox(firefox_profile=firefoxprofile )

it hangs at the final step I'm also running this on a headless server using Xvfb.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Venu
  • 353
  • 3
  • 6
  • 18
  • Could you also show how do you start `Xvfb`? – alecxe Mar 16 '15 at 09:56
  • I dont start Xvfb, it is installed. I use pyvirtualdisplay to run selenium in headless mode. One more point is that if I run one script at a time it works but if I try to run concurrently then it hangs sometimes – Venu Mar 16 '15 at 10:37

1 Answers1

0

Most probably a firefox/selenium compatibility issue. Maybe this helps.

(I would have rather added a comment but I am 4 rep points short of doing so).

Community
  • 1
  • 1
Würgspaß
  • 4,660
  • 2
  • 25
  • 41
  • I verified Selenium site and Selenium 2.43 supports Firefox 29 native elements – Venu Mar 17 '15 at 13:10
  • Reading this [changelog](http://selenium.googlecode.com/git/java/CHANGELOG) I found this: v2.43.0 - support Firefox 24, 31 and 32. Try one of these versions. – Würgspaß Mar 19 '15 at 08:45