Display results as :

Rechercher Advanced Search

Latest topics

Unable to run firefox from selenium webdriver

View previous topic View next topic Go down

Unable to run firefox from selenium webdriver

Post by yogesh.tyagi on Sat Jun 18, 2016 9:21 am

I am not able to run a selenium IDE generated python unit test in firefox:
I am getting either following error:

python aa
ERROR: test_aa (__main__.Aa)
Traceback (most recent call last):
  File "aa", line 12, in setUp
    self.driver = webdriver.Firefox()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 103, in __init__
    self.binary, timeout)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 51, in __init__
    self.binary.launch_browser(self.profile, timeout=timeout)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 68, in launch_browser
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 98, in _wait_until_connectable
    raise WebDriverException("The browser appears to have exited "
WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.

Ran 1 test in 3.053s

FAILED (errors=1)

or this error:
ERROR: test_aa (__main__.Aa)
Traceback (most recent call last):
  File "aa", line 20, in test_aa
    driver.get(self.base_url + "/")
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/", line 245, in get
    self.execute(Command.GET, {'url': url})
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/", line 231, in execute
    response = self.command_executor.execute(driver_command, params)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/", line 395, in execute
    return self._request(command_info[0], url, body=data)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/", line 426, in _request
    resp = self._conn.getresponse()
  File "/usr/lib/python2.7/", line 1051, in getresponse
  File "/usr/lib/python2.7/", line 415, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/", line 379, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''

Ran 1 test in 3.236s

I am using Mozilla firefox for Ubuntu 47.0 and Python 2.7.6


Posts : 1
Join date : 2016-06-18

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum