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

未关闭
#1,992 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
python
领域
testing-qa

调研方向

从已报告的 SeleniumLibrary 关键字入口点开始—Click Element、Wait Until Element Is Visible、Wait Until Page Loaded 和 Set Selenium Page Load Timeout—并在所列版本下重现问题。将失败的 logout 和 Browse 模块导航与一个最小的长时间运行案例进行比较,并收集 Chrome/Selenium 超时日志;完成的标准是定位出可复现的库故障,或记录说明问题属于环境因素或 upstream。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
1.5k
派生
787
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

robotframework/SeleniumLibrary 的其他 Issue

查看 robotframework/SeleniumLibrary 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。