<p dir="auto">As suggested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="863320360" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/6254" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/6254/hovercard" href="https://github.com/microsoft/playwright/issues/6254">#6254</a>, creating an issue to support recording sent and received WebSocket frames in the HAR.</p>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.25.2</li>
<li>Operating System: linux</li>
<li>Node.js version: using python (pytest-playwright)</li>
<li>Browser: chrome</li>
<li>Extra: [any specific details about your environment]</li>
</ul>


<h2 dir="auto">System:</h2>
<ul dir="auto">
<li>OS: Linux 5.19 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)</li>
<li>Memory: 51.81 GB / 62.53 GB</li>
<li>Container: Yes</li>
</ul>
<h2 dir="auto">Binaries:</h2>
<ul dir="auto">
<li>Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node</li>
<li>Yarn: 1.22.17 - ~/.nvm/versions/node/v16.14.0/bin/yarn</li>
<li>npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm</li>
</ul>
<h2 dir="auto">Languages:</h2>
<ul dir="auto">
<li>Bash: 5.1.16 - /usr/bin/bash</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br>
that we can run and debug locally. For example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="        str_start_time = datetime.datetime.now().strftime(&quot;%Y-%m-%d_%H-%M-%S&quot;)
        har_path = f&quot;{request_hars}/{str_start_time}_{request.node.originalname}.har&quot;
        page = await browser.new_page(
            no_viewport=True,
            record_video_dir=f&quot;./{videos}&quot;,
            record_video_size={&quot;width&quot;: 1920, &quot;height&quot;: 1080},
            record_har_path=har_path,
            record_har_mode=&quot;full&quot;,
        )
"><pre class="notranslate">        <span class="pl-s1">str_start_time</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>().<span class="pl-en">strftime</span>(<span class="pl-s">"%Y-%m-%d_%H-%M-%S"</span>)
        <span class="pl-s1">har_path</span> <span class="pl-c1">=</span> <span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">request_hars</span><span class="pl-kos">}</span></span>/<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">str_start_time</span><span class="pl-kos">}</span></span>_<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">request</span>.<span class="pl-s1">node</span>.<span class="pl-s1">originalname</span><span class="pl-kos">}</span></span>.har"</span>
        <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span>.<span class="pl-en">new_page</span>(
            <span class="pl-s1">no_viewport</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
            <span class="pl-s1">record_video_dir</span><span class="pl-c1">=</span><span class="pl-s">f"./<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">videos</span><span class="pl-kos">}</span></span>"</span>,
            <span class="pl-s1">record_video_size</span><span class="pl-c1">=</span>{<span class="pl-s">"width"</span>: <span class="pl-c1">1920</span>, <span class="pl-s">"height"</span>: <span class="pl-c1">1080</span>},
            <span class="pl-s1">record_har_path</span><span class="pl-c1">=</span><span class="pl-s1">har_path</span>,
            <span class="pl-s1">record_har_mode</span><span class="pl-c1">=</span><span class="pl-s">"full"</span>,
        )</pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">I turned on har recording with <code class="notranslate">record_har_path</code> and <code class="notranslate">record_har_mode</code> = full . I still cant see any wesocket request's inside my har. Where as if I save the har using chrome dev tools I see websocket requests in har</p>