The CDPSession instances are used to talk raw Chrome Devtools Protocol:
protocol methods can be called with session.send method.
protocol events can be subscribed to with session.on method.
Playwright gives you Web-First Assertions with convenience methods for creating assertions that will wait and retry
until the expected condition is met.
Whenever the page sends a request for a network resource the following sequence of events are emitted by Page:
Page.onRequest() emitted when the request is issued by the page.
Page.onResponse() emitted when/if the response status and headers are
received for the request.
Page.onRequestFinished() emitted when the response body is
downloaded and the request is complete.