SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

Timeout error "WebRequestTimeout"

Open AdrienVBA opened this issue 3 years ago • 2 comments

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

AdrienVBA avatar Jun 25 '21 16:06 AdrienVBA

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

moorelgm avatar Jun 22 '22 18:06 moorelgm

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

AdrienVBA avatar Jun 23 '22 07:06 AdrienVBA