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.