<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.32.3]</li>
<li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
</ul>
<p dir="auto">I am coming over to this project from webdriverio to evaluate this.</p>
<p dir="auto">In Selenium and webdriverio  we would just call waitForEnabled() or waitForEnabled({ reverse: true }) but I see only</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="waitFor(&quot;attached&quot;|&quot;detached&quot;|&quot;visible&quot;|&quot;hidden&quot;)"><pre class="notranslate"><code class="notranslate">waitFor("attached"|"detached"|"visible"|"hidden")
</code></pre></div>
<p dir="auto">I see that isEnabled has timeout option but that does not work for me to really know when it will be.  Is there a polling or something that we can tap into and if so how would one go about ?</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.33]</li>
<li>Operating System: [Windows 11]</li>
<li>Browser: [WebKit]</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 opening new window and 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" href="https://user-images.githubusercontent.com/108714133/237222541-2ac571a5-3dda-4b6c-b4f8-c6afcd781ad6.png"><img src="https://user-images.githubusercontent.com/108714133/237222541-2ac571a5-3dda-4b6c-b4f8-c6afcd781ad6.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">below code used for test</p>
<h3 dir="auto">Source code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const { webkit }    = require('playwright');

(async () =&gt; {
    const context = await webkit.launchPersistentContext('my-data', {
      userAgent: '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',
      headless: false
    });
    const page = await context.newPage();
    page.goto('https://www.whatismybrowser.com/detect/what-is-my-user-agent/');
  })();
"><pre class="notranslate"><code class="notranslate">const { webkit }    = require('playwright');

(async () =&gt; {
    const context = await webkit.launchPersistentContext('my-data', {
      userAgent: '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',
      headless: false
    });
    const page = await context.newPage();
    page.goto('https://www.whatismybrowser.com/detect/what-is-my-user-agent/');
  })();

</code></pre></div>