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,220 points
55 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,280 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,130 points
382 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,400 points
226 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 29, 2018 in Selenium by nsv999
• 5,050 points
287 views
0 votes
1 answer

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,050 points
247 views
0 votes
1 answer
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,130 points
618 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
235 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,280 points
1,382 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,280 points
174 views