@kani339

Почему Python selenium не запускает браузер?

Пытаюсь открыть браузер и зайти на сайт, выдает данную ошибку,
до этого делал все так же и все работало.

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
  • Вопрос задан
  • 896 просмотров
Решения вопроса 1
@kani339 Автор вопроса
Проблема была в Fireofox 47 версии поставил 46 и все заработaло
Ответ написан
Пригласить эксперта
Ответы на вопрос 2
dimonchik2013
@dimonchik2013
non progredi est regredi
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host


а google.com открывается?
Ответ написан
@Andy_U
Как работать с FF47, см: тут
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы