Skip to content

Screenshot could lead to "Timed out receiving message from renderer: 10.000" if multiple tabs are open #1616

@mdmintz

Description

@mdmintz

Taking a screenshot could lead to Timed out receiving message from renderer: 10.000 if there are multiple tabs open, (when not on the first tab), if using Chromium's new headless mode.

It's a very specific edge case that requires a lot of things to be in place to happen, but then the issue is consistent when all those things are in place.

Full message from the exception:

TimeoutException: Message: timeout: Timed out receiving message from renderer: 10.000
  (Session info: chrome=107.0.5304.110)

The new headless mode is triggered by:

options.add_argument("--headless=chrome")

SeleniumBase has a command-line option: --headless2, which triggers the new headless mode from pytest.

This might solve the issue:

options.add_argument("--disable-backgrounding-occluded-windows")

Metadata

Metadata

Assignees

Labels

SeleniumBase 4SeleniumBase 4bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions