florentbr / SeleniumBasic

A Selenium based browser automation framework for VB.Net, VBA and VBScript
BSD 3-Clause "New" or "Revised" License
422 stars 197 forks source link

Timeout error "WebRequestTimeout" #224

Open AdrienVBA opened 3 years ago

AdrienVBA commented 3 years ago

Hello,

I want to download a file on an internal web application using the code below:

Sub Import_File() Dim driver as new WebDriver ...

' To increase the time to load the page driver.Timeouts.pageload = 300000

' To click on the button and download the file driver. findElementByName("CalculImport").Click

... End Sub

The code "click" on the button but after 100 seconds, I get the following error but the page still loading: "Microsoft Visual Basic Erreur d'exécution '101': WebRequestTimeout No response from the server within 100 seconds (http://localhost:59218/session/b37cf2b52465f2577f6d0e3fb23cfd16/"

I do not understand with the page still loading and the message appears (while the page should load during 300 seconds as configured).

Has anyone ever encountered this problem and could help me? Many thanks !

Adrien

moorelgm commented 2 years ago

Hi, I just ran across the same. Did you find a solution to this?

AdrienVBA commented 2 years ago

Hello, Unfortunately I did not found the solution to fix this but I have a work around: I stop the macro replacing "driver. findElementByName("CalculImport").Click" by a msgbox("Click on the button manually and wait for the downloading. Click on OK when it finish.") AdrienVBA