Selenium docs error using Firefox

0 votes

I’m new to programming world and started to learn python.

As part of my project I need to open, feed a webform and download an image and as I have to do this umpteen time, I looked around if there is any way to automate it using Python. While running Selenium example code as given here Selenium docs example code

Below is the error:

 driver = webdriver.Firefox()

  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 51, in __init__

    self.binary, timeout),

  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__

    self.binary.launch_browser(self.profile)

  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 44, in launch_browser

    self._wait_until_connectable()

  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 81, in _wait_until_connectable

    self._get_firefox_output())

selenium.common.exceptions.WebDriverException: Message: 'The browser appears to have exited before we could connect. 

I am using python 2.7.6 and the Firefox version is 40.0.3. Please help me to fix this.Thanks

Apr 25, 2018 in Selenium by Martin
• 4,320 points
891 views

1 answer to this question.

0 votes

Selenium v2.25 doesn't support firefox v40. Either downgrade your browser or upgrade your selenium version.

  1. Selenium v2.25 supports firefox browser v17.
  2. Selenium v2.47 supports firefox browser v39.
answered Apr 25, 2018 by Vardy
• 2,360 points

Related Questions In Selenium

0 votes
1 answer

Error: unable to add browser extension to Firefox profile using Selenium

Try to create profile on Firefox browser ...READ MORE

answered Jul 11, 2018 in Selenium by Samarpit
• 5,910 points
3,164 views
0 votes
1 answer

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

Download Firefox 55 beta and set capabilities.setCapability("acceptInsecureCerts", true); Here ...READ MORE

answered Sep 17, 2018 in Selenium by Meci Matt
• 9,460 points
1,793 views
0 votes
1 answer
0 votes
1 answer

Headless ChromeDriver using Python Selenium error: Fails To Start— “DevTools request failed”

This should be because your ChromeDriver is ...READ MORE

answered Mar 30, 2018 in Selenium by nsv999
• 5,500 points
2,034 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,649 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,131 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,209 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,865 views
0 votes
1 answer

Select an item from a dropdown list using Selenium WebDriver

Use this then it will work - new ...READ MORE

answered Apr 9, 2018 in Selenium by Vardy
• 2,360 points
7,759 views
0 votes
1 answer

JavaScript Executor using Selenium WebDriver

Its working fine but the problem in ...READ MORE

answered Apr 9, 2018 in Selenium by Vardy
• 2,360 points
1,467 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP