Collecting Network Events using Selenium WebDriver is simple, you just need to enable performance logging in Chrome Desired capabilities. Once you enable Performance Log, Timeline, Network, and Page events can be collected.

Enabling Logging in Desired Capabilities

Collecting Network Events


If tracing is enabled, ChromeDriver will start a browser-wide trace when Chrome is launched, and will continue tracing until Chrome closes.

[Total: 7    Average: 4.6/5]