<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Minfein]]></title><description><![CDATA[Minfein]]></description><link>https://www.minfein.com</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 16:41:06 GMT</lastBuildDate><atom:link href="https://www.minfein.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to monitor network events when testing using Playwright]]></title><description><![CDATA[How to log network requests made when a Playwright test runs
page.on('request', request =>
      console.log('>>', request.method(), request.url()));
How to log network responses received when a Playwright test runs
page.on('response', response =>
  ...]]></description><link>https://www.minfein.com/how-to-monitor-network-events-when-testing-using-playwright</link><guid isPermaLink="true">https://www.minfein.com/how-to-monitor-network-events-when-testing-using-playwright</guid><category><![CDATA[Testing]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[TypeScript]]></category><dc:creator><![CDATA[Ahmed]]></dc:creator><pubDate>Thu, 28 Apr 2022 13:41:22 GMT</pubDate><content:encoded><![CDATA[<h4 id="heading-how-to-log-network-requests-made-when-a-playwright-test-runs">How to log network requests made when a Playwright test runs</h4>
<pre><code>page.on(<span class="hljs-string">'request'</span>, request <span class="hljs-operator">=</span><span class="hljs-operator">&gt;</span>
      console.log(<span class="hljs-string">'&gt;&gt;'</span>, request.method(), request.url()));
</code></pre><h4 id="heading-how-to-log-network-responses-received-when-a-playwright-test-runs">How to log network responses received when a Playwright test runs</h4>
<pre><code>page.on(<span class="hljs-string">'response'</span>, response <span class="hljs-operator">=</span><span class="hljs-operator">&gt;</span>
      console.log(<span class="hljs-string">'&lt;&lt;'</span>, response.status(), response.url()));
</code></pre><h4 id="heading-sources">Sources</h4>
<ul>
<li><a target="_blank" href="https://playwright.dev/docs/network#network-events">playwright.dev</a></li>
</ul>
]]></content:encoded></item></channel></rss>