V
V
Viktor2016-07-06 19:29:33
Python
Viktor, 2016-07-06 19:29:33

Why doesn't Python selenium launch a browser?

I try to open the browser and go to the site, it gives this error,
before that I did everything the same way and everything worked.
Python: Version 3.3.5

Traceback (most recent call last):
  File "D:/Code/Python/Spinxo Username Extractor/Spinxo Username Extractor.py", line 9, in <module>
    browser = webdriver.Firefox()
  File "C:\Python33\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 85, in __init__
    keep_alive=True)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 90, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 177, in start_session
    response = self.execute(Command.NEW_SESSION, capabilities)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in execute
    response = self.command_executor.execute(driver_command, params)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 401, in execute
    return self._request(command_info[0], url, body=data)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 433, in _request
    resp = self._conn.getresponse()
  File "C:\Python33\lib\http\client.py", line 1147, in getresponse
    response.begin()
  File "C:\Python33\lib\http\client.py", line 358, in begin
    version, status, reason = self._read_status()
  File "C:\Python33\lib\http\client.py", line 320, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "C:\Python33\lib\socket.py", line 297, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Process finished with exit code 1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Victor, 2016-07-06
@kani339

The problem was in Fireofox 47 version set 46 and everything worked

D
Dimonchik, 2016-07-06
@dimonchik2013

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

does google.com open?

A
Andy_U, 2016-07-07
@Andy_U

How to work with FF47, see: here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question