robotframework / robotframework/SeleniumLibrary

Intermittent ReadTimeoutError (HTTPConnectionPool localhost) during long SeleniumLibrary execution with Chrome freezing

Abierto
#1,992 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
1.5k
Forks
787
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

We are experiencing intermittent ReadTimeoutError failures during long Robot Framework executions using SeleniumLibrary.

The issue is difficult to reproduce consistently, but it occurs frequently during large execution batches.

Environment
  • Robot Framework: Robot Framework 7.3.2 (Python 3.12.0 on win32)
  • SeleniumLibrary: 6.8.0
  • Selenium: 4.36.0
  • Chrome: 149.0.7827.200 (64-bit)
  • Windows 11
Error
ReadTimeoutError:
HTTPConnectionPool(host='localhost', port=xxxxx):
Read timed out. (read timeout=120)

Sometimes we also see:

Timed out receiving message from renderer
Behavior

The browser visibly freezes when this happens.

The failure is intermittent and can occur in different Selenium keywords, for example:

  • Click Element
  • Wait Until Element Is Visible
  • Wait Until Page Loaded
  • Set Selenium Page Load Timeout

It most commonly happens during:

  • Logout
  • Navigating to the Browse module after switching back to the main window

However, it is not limited to those locations. The same timeout can occur in different tests at different steps.

Additional observations
  • A new browser is launched for every test case.
  • Failures are random and not tied to one specific test.
  • The application is still running, but Chrome becomes unresponsive.
  • Selenium waits for approximately 120 seconds before raising the ReadTimeoutError.

##Log excerpt

Wait Until Page Loaded  00:10:00.795KEYWORD 02_Browse_POM . Click On the Browse Module   Start / End / Elapsed: | 20260706 15:04:20.439 / 20260706 15:14:21.234 / 00:10:00.795 -- | --
Question

Has anyone experienced similar intermittent browser freezes resulting in HTTPConnectionPool(host='localhost') ReadTimeoutError?

Is this known to be related to SeleniumLibrary, Selenium Python, ChromeDriver, Chrome, or is there anything we should investigate further?

Any suggestions would be greatly appreciated.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con los puntos de entrada de las keywords de SeleniumLibrary indicados—Click Element, Wait Until Element Is Visible, Wait Until Page Loaded y Set Selenium Page Load Timeout—y reproduce el problema con las versiones indicadas. Compara el logout que falla y la navegación del módulo Browse con un caso mínimo de larga duración, y recopila los logs de timeout de Chrome/Selenium; se considera terminado cuando se haya aislado un fallo reproducible de la biblioteca o se haya documentado que el problema es del entorno o de upstream.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
testing-qa
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.