- yogesh.tyagi
- Posts : 1
Join date : 2016-06-18
Unable to run firefox from selenium webdriver
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
E
======================================================================
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/webdriver.py", line 103, in __init__
self.binary, timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in __init__
self.binary.launch_browser(self.profile, timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable(timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", 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/webdriver.py", line 245, in get
self.execute(Command.GET, {'url': url})
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 231, in execute
response = self.command_executor.execute(driver_command, params)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 395, in execute
return self._request(command_info[0], url, body=data)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 426, in _request
resp = self._conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1051, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 415, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", 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
I am getting either following error:
python aa
E
======================================================================
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/webdriver.py", line 103, in __init__
self.binary, timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in __init__
self.binary.launch_browser(self.profile, timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable(timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", 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/webdriver.py", line 245, in get
self.execute(Command.GET, {'url': url})
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 231, in execute
response = self.command_executor.execute(driver_command, params)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 395, in execute
return self._request(command_info[0], url, body=data)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 426, in _request
resp = self._conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1051, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 415, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", 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
- Unable to switch to parent window in selenium Webdriver
- will selenium webdriver supports firefox 6/ 7/ 8
- Temporary FireFox Profile using Selenium WebDriver
- Selenium 2 Webdriver cant find element by xpath after upgrading from firefox 3.6 to 5
- Selenium Webdriver: Unable to Locate element Link method error
Permissions in this forum:
You cannot reply to topics in this forum