Excel Selenium,VBA-错误代理连接失败,chromedriver更新86.0.4240.111

Excel Selenium,VBA-错误代理连接失败,chromedriver更新86.0.4240.111,excel,vba,selenium,proxy,selenium-chromedriver,Excel,Vba,Selenium,Proxy,Selenium Chromedriver,在最新的chrome更新之前,它一直运行良好。像往常一样,我下载了最新的Chromedriver更新,以补充最新版本的chrome,但现在我在尝试打开页面时遇到以下错误 我使用的是代理,所以一开始我在没有代理的情况下启动chrome以确保没有代理的情况下没有连接,然后我启动Putty并连接代理服务器。在最新更新之前,所有这些都可以无缝工作 我在下面包含了我的代码的一部分: Public Driver As New WebDriver Set Driver = New ChromeDriver

在最新的chrome更新之前,它一直运行良好。像往常一样,我下载了最新的Chromedriver更新,以补充最新版本的chrome,但现在我在尝试打开页面时遇到以下错误

我使用的是代理,所以一开始我在没有代理的情况下启动chrome以确保没有代理的情况下没有连接,然后我启动Putty并连接代理服务器。在最新更新之前,所有这些都可以无缝工作

我在下面包含了我的代码的一部分:

Public Driver As New WebDriver

Set Driver = New ChromeDriver
Driver.SetProfile Sheets("Settings").Range("B52").Value
Driver.AddArgument ("--proxy-server=socks5://localhost:1194")

'Set download directory
Driver.SetPreference "download.default_directory", Sheets("Settings").Range("B44").Value
Driver.Get "https://www.google.co.uk/", timeout:=none ', False

If Driver.FindElementsByXPath("//*[contains(text(),'The proxy server is refusing connections')]").Count Or Driver.FindElementsByXPath("//*[contains(text(),'There is something wrong with the proxy server')]").Count Then
    Open_Putty_and_Connect_to_Host_Network
end if
在driver.get上发生错误

完整错误消息:

Run_time error '13':

UnknownError
unknown error: net::ERR_PROXY_CONNECTION_FAILED
 (Session info: chrome=86.0.4240.111)
 (Driver info: chromedriver=86.0.4240.22)
(398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/424
NT 10.0.18362 x86_64)
我一直在网上寻找,我能看到的是,我需要将一个参数传递给chrome驱动程序,但我不确定如何传递或需要传递什么

代码将正常运行超过这一点,并连接到代理并执行其标准功能,但我无法理解为什么会发生此错误或如何修复它。任何帮助都将不胜感激