<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.32]</li>
<li>Operating System: [Windows 11]</li>
<li>Browser: [WebKit]</li>
<li>Other info:</li>
</ul>
<p dir="auto">i set userAgent in browsercontext using launchPersistentContext as<br>
<code class="notranslate">Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1</code></p>
<p dir="auto">but when checking in webkits console its showing as<br>
<code class="notranslate">Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/605.1.15 (KHTML, like Gecko)</code></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/108714133/234859842-f9e9a570-71a0-4a17-bfda-546e79533228.png"><img src="https://user-images.githubusercontent.com/108714133/234859842-f9e9a570-71a0-4a17-bfda-546e79533228.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.32.2]</li>
<li>Operating System: [macOS 13.3]</li>
<li>Browser: [WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto"><strong>main.js file</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { webkit } = require('playwright');

const test = async () =&gt; {
    const context = await webkit.launchPersistentContext('path_for_user_dir', {headless: false});
    const page = await context.newPage();
    await page.goto('https://www.abc.com');
}
test();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> webkit <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-en">test</span> <span class="pl-c1">=</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
    <span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">webkit</span><span class="pl-kos">.</span><span class="pl-en">launchPersistentContext</span><span class="pl-kos">(</span><span class="pl-s">'path_for_user_dir'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://www.abc.com'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>package.json</strong></p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;name&quot;: &quot;testcafe&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;main.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;node main.js&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;testcafe&quot;: &quot;^2.0.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@playwright/test&quot;: &quot;^1.32.2&quot;,
      &quot;playwright&quot;: &quot;^1.32.2&quot;
    }
  }"><pre class="notranslate">{
    <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>testcafe<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"description"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
    <span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>main.js<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"scripts"</span>: {
      <span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>node main.js<span class="pl-pds">"</span></span>
    },
    <span class="pl-ent">"keywords"</span>: [],
    <span class="pl-ent">"author"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
    <span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"dependencies"</span>: {
      <span class="pl-ent">"testcafe"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.0<span class="pl-pds">"</span></span>
    },
    <span class="pl-ent">"devDependencies"</span>: {
      <span class="pl-ent">"@playwright/test"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.32.2<span class="pl-pds">"</span></span>,
      <span class="pl-ent">"playwright"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.32.2<span class="pl-pds">"</span></span>
    }
  }</pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>npm start</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">It should open webkit browser with latest version (saw in doc and npm package link that it supports 16.4).</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">When I use launchPersistentContext method it opens old webkit browser 13.x.x (checked in user agent of browesr and other online sites) and when I use launch method it opens up in new version of webkit which is 16.4.</p>
<p dir="auto">I don't know if I'm missing something.</p>