playwright-mcp/tests
Ryan Malloy 96641283c3 feat: add WebRTC connection monitoring tools
Add real-time WebRTC connection monitoring for testing video calling apps.
Monitors real RTCPeerConnection instances and collects connection statistics.

New tools:
- browser_start_webrtc_monitoring: Enable monitoring and stats collection
- browser_get_webrtc_connections: List connections with state filtering
- browser_get_webrtc_stats: Detailed stats (bitrate, packet loss, jitter, RTT)
- browser_stop_webrtc_monitoring: Stop stats polling, preserve data
- browser_clear_webrtc_data: Clear captured connection data

Implementation:
- Intercepts RTCPeerConnection constructor via page.addInitScript()
- Captures state changes via page.exposeFunction() callbacks
- Collects stats via page.evaluate() calling getStats()
- Tab-level storage with Context aggregation (same pattern as notifications)
- Configurable stats polling interval (default 1s)

Use cases:
- Test WebRTC call quality in real-time
- Monitor connection states and failures
- Analyze bandwidth, packet loss, frame rates
2026-01-16 20:39:44 -07:00
..
testserver chore: only reset network log upon explicit navigation (#377) 2025-05-08 17:02:09 -07:00
capabilities.spec.ts feat: add WebRTC connection monitoring tools 2026-01-16 20:39:44 -07:00
cdp.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
click.spec.ts chore: include recent console logs in results (#689) 2025-07-17 14:58:44 -07:00
config.spec.ts fix: no-sandbox flag logic to only disable sandbox when explicitly passed (#709) 2025-07-18 13:56:01 -07:00
console.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
core.spec.ts chore: move state to tab, do not cache snapshot (#730) 2025-07-22 07:53:33 -07:00
device.spec.ts chore: remove extension code (#667) 2025-07-14 10:52:38 -07:00
dialogs.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
evaluate.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
files.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
fixtures.ts chore: turn vision into capability (#679) 2025-07-16 16:40:00 -07:00
headed.spec.ts test: run tests on MCP server inside Docker (#361) 2025-05-07 18:04:20 +02:00
http.spec.ts chore: use streamable http by default (#716) 2025-07-18 18:31:00 -07:00
iframes.spec.ts chore: update to 1.54.0 (#653) 2025-07-14 09:53:33 +02:00
install.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
launch.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
library.spec.ts chore: align lint w/ playwright (#729) 2025-07-21 17:07:13 -07:00
network.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
pdf.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
request-blocking.spec.ts test: verify the log in close/navigate test (#505) 2025-06-01 12:49:30 -07:00
screenshot.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
sse.spec.ts chore: use streamable http by default (#716) 2025-07-18 18:31:00 -07:00
tabs.spec.ts chore: introduce response type (#738) 2025-07-22 16:36:21 -07:00
trace.spec.ts chore: remove extension code (#667) 2025-07-14 10:52:38 -07:00
wait.spec.ts chore: roll playwright 5/9 (#394) 2025-05-09 18:01:17 -07:00
webdriver.spec.ts chore: migrate to ESM (#303) 2025-04-30 23:06:56 +02:00