VBA: the underlying connection was closed: an unexpected error occurred on a receipt

1

I have a VBA project that interacts with web pages using the SeleniumWrapper reference. In Windows Vista business the application works normally, however, in Windows 7 appears the error reported in the title of the question

Follow the code:

    Sub x()
        Dim objCollection
        Dim objCollection1 As Object
        Dim numeroPregao, dataAssinatura, uasg, item, val, m
        Dim c As Integer
        Dim ULogin As Boolean, ieForm
        Dim MyPass As String, MyLogin As String
        Dim driver As New SeleniumWrapper.WebDriver


        driver.Start "chrome", "http://comprasnet.gov.br" 'inicia o navegador                              
        driver.Open "/acesso.asp?url=/Livre/Ata/ConsultaAta00.asp" 'navega até a pagina

        Set objCollection = driver.findElementByCssSelector("frame[name='main2']") 'o erro ocorre aqui

The error is thrown last command, but the line driver.Open "/acesso.asp?url=/Livre/Ata/ConsultaAta00.asp" 'navigates to the page . does not do anything

    
asked by anonymous 10.02.2017 / 15:38

1 answer

1

After much research I found the solution! The error was happening because Chrome had upgraded to the latest version and ChromeDriver I was using did not support this version of Chrome. I downloaded the new version of ChromeDriver and pasted it inside the Selenium folder and it worked perfectly

ChromeDriver versions for download: link

    
22.03.2017 / 19:36