Intermittent ReadTimeoutError (HTTPConnectionPool localhost) during long SeleniumLibrary execution with Chrome freezing
还没有人认领这个 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
robotframework/SeleniumLibrary 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
robotframework/SeleniumLibrary#1941 · 3 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 65/100
robotframework/SeleniumLibrary#1833 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
robotframework/SeleniumLibrary#1436 · 5 条评论 ·
-
难度 3/5 1-2 天 新手友好度 58/100
robotframework/SeleniumLibrary#1993 ·
-
难度 4/5 3-5 天 新手友好度 35/100
robotframework/SeleniumLibrary#1964 · 1 条评论 ·
查看 robotframework/SeleniumLibrary 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
zostera/django-bootstrap4#894 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
use-agent-os/agent-os#3276 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
zilliztech/memsearch#759 ·