Connectionreseterror: [Winerror 10054] remote host forced shutdown

Source: Internet
Author: User

Use Python selenium to get automated tests to throw this exception when you open Google Browser


C:\Users\think\AppData\Local\Programs\Python\Python35\python.exe f:/python/test.py
Traceback (most recent call last):
File "f:/python/test.py", line 7, in <module>
Browser.get ("http://www.yahoo.com") # Load page
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\site-packages\selenium\webdriver\remote\ webdriver.py ", line 268, in get
Self.execute (command.get, {' url ': url})
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\site-packages\selenium\webdriver\remote\ webdriver.py ", line 254, in Execute
Response = Self.command_executor.execute (Driver_command, params)
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\site-packages\selenium\webdriver\remote\remote_ connection.py ", line 464, in Execute
Return Self._request (command_info[0], url, body=data)
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\site-packages\selenium\webdriver\remote\remote_ connection.py ", line 488, in _request
RESP = Self._conn.getresponse ()
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 1174, in GetResponse
Response.begin ()
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 282, in begin
version, status, Reason = Self._read_status ()
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 243, in _read_status
line = str (self.fp.readline (_maxline + 1), "iso-8859-1")
File "C:\Users\think\AppData\Local\Programs\Python\Python35\lib\socket.py", line 571, in Readinto
return Self._sock.recv_into (b)
Connectionreseterror: [Winerror 10054] The remote host forced the shutdown of an existing connection.


Need to download the latest version of the Chromedriver.exe, such as 2.27, you can open the normal.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.