on rasberry pi 3 python 2.7 , trying to run code on geckodriver with selenium and getting error

alon.najman at gmail.com alon.najman at gmail.com
Mon Sep 10 06:48:46 EDT 2018


hi ,
on rasberry pi 3 python 2.7 , trying to run code on geckodriver with selenium and getting an error the Firefox browser is opened automatically :) it just don't work I'm not getting the stock value on the print BTW it works on my PC with ChromeDriver -

Traceback (most recent call last):
  File "/home/pi/Desktop/Automation RatiL works on PC.py", line 22, in <module>
    driver.get('https://www.investing.com/equities/ratio-par')
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 248, in get
    self.execute(Command.GET, {'url': url})
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 234, 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 401, 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 433, in _request
    resp = self._conn.getresponse()
  File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 444, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 408, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''




thanks all



More information about the Python-list mailing list