urllib3.exceptions.ProtocolError: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))

后端 未结 1 2012
清酒与你
清酒与你 2020-11-28 16:48

I am trying to open a website on chrome using Python Selenium chromedriver. Chrome browser is opening (with warnings) and the url is not opening.

Version details :

相关标签:
1条回答
  • 2020-11-28 17:17

    This error message...

    urllib3.exceptions.ProtocolError: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
    

    ...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.

    Your main issue is the incompatibility between the version of the binaries you are using as follows:

    • You are using chromedriver=2.20
    • Release Notes of chromedriver=2.20 clearly mentions the following :

    Supports Chrome v43-48

    • You are using chrome=68.0
    • Release Notes of ChromeDriver v2.41 clearly mentions the following :

    Supports Chrome v67-69

    So there is a clear mismatch between ChromeDriver v2.33 and the Chrome Browser v65.0

    Solution

    • Upgrade ChromeDriver to current ChromeDriver v2.41 level.
    • Keep Chrome version between Chrome v67-69 levels. (as per ChromeDriver v2.41 release notes)
    • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
    • If your base Web Client version is too old, then uninstall it and install a recent GA and released version of Web Client.
    • Execute your @Test.
    0 讨论(0)
提交回复
热议问题