Skip to content

[browser] use IDevTools for console logs#1537

Merged
pavelsavara merged 3 commits intodotnet:mainfrom
pavelsavara:streaming_selenium_console
Jan 14, 2026
Merged

[browser] use IDevTools for console logs#1537
pavelsavara merged 3 commits intodotnet:mainfrom
pavelsavara:streaming_selenium_console

Conversation

@pavelsavara
Copy link
Member

  • drop RunSeleniumLogMessagePump and replace it with session.Console.MessageAdded event
    • this is better than logs.GetLog(logType) that is HTTP call to webdriver until browser can respond. This is blocked by synchronous unit test code running.
    • this requires selenium IDevTools that only chromedriver implements
    • the new method is based on chrome dev tools protocol, that is pushing/streaming console events regardless of busy JS thread.
    • logs.AvailableLogTypes returns empty on Firefox and we use websockets to push console logs anyway.

@pavelsavara pavelsavara self-assigned this Jan 12, 2026
@pavelsavara
Copy link
Member Author

/ba-g unrelated apple failures

@pavelsavara pavelsavara merged commit f4451e7 into dotnet:main Jan 14, 2026
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants