Chromedriver forcibly closing connection

315 views
Skip to first unread message

Scott Guyton

unread,
Sep 8, 2016, 8:59:34 PM9/8/16
to webdriver
Hello,

I've run into a peculiar issue when trying to use a recently compiled version of chromium with the python version of selenium webdriver. I find it odd, as previously I did not have this trouble about a month back.  Here is how I am calling the webdriver object:
chrome_path = Options()
chrome_path.binary_location = config['altlocation']
driver = webdriver.Chrome(chrome_options=chrome_path)


The location string is stored in a .yaml file for abstraction as I have to run the test in multiple locations. I've tried to see if I could see the packets using wireshark, but that was a bust so, I'm not sure how to tackle this problem. Below is the full error:
Traceback (most recent call last):
 
File "C:/Users/Scott/PycharmProjects/Work Project/Key Survey Webscrape/index.py", line 159, in <module>
    driver
= webdriver.Chrome(chrome_options=chrome_path)
 
File "C:\Program Files (x86)\Python35-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__
    desired_capabilities
=desired_capabilities)
 
File "C:\Program Files (x86)\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 90, in __init__
   
self.start_session(desired_capabilities, browser_profile)
 
File "C:\Program Files (x86)\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 177, in start_session
    response
= self.execute(Command.NEW_SESSION, capabilities)
 
File "C:\Program Files (x86)\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in execute
    response
= self.command_executor.execute(driver_command, params)
 
File "C:\Program Files (x86)\Python35-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 401, in execute
   
return self._request(command_info[0], url, body=data)
 
File "C:\Program Files (x86)\Python35-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 433, in _request
    resp
= self._conn.getresponse()
 
File "C:\Program Files (x86)\Python35-32\lib\http\client.py", line 1197, in getresponse
    response
.begin()
 
File "C:\Program Files (x86)\Python35-32\lib\http\client.py", line 297, in begin
    version
, status, reason = self._read_status()
 
File "C:\Program Files (x86)\Python35-32\lib\http\client.py", line 258, in _read_status
    line
= str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
 
File "C:\Program Files (x86)\Python35-32\lib\socket.py", line 575, in readinto
   
return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Any help would be greatly appreciated!


Reply all
Reply to author
Forward
0 new messages