Chrome DevTools Network Features

Network features using CDP.

While Selenium 4 provides direct access to the Chrome DevTools Protocol, these methods will eventually be removed when WebDriver BiDi implemented.

Basic authentication

Some applications make use of browser authentication to secure pages. It used to be common to handle them in the URL, but browsers stopped supporting this. With this code you can insert the credentials into the header when necessary

Network Interception

Both requests and responses can be recorded or transformed.

Response information

Response transformation

Request interception

Performance Metrics

Setting Cookies

Waiting for Downloads

Last modified July 10, 2024: Release 4.22 Updates (#1765) (fa7b1165ed)