<p dir="auto"><a href="https://playwright.dev/python/docs/chrome-extensions" rel="nofollow">The Playwright docs</a> encourage the use of <code class="notranslate">launch_persistent_context</code> in headful mode in order to include a browser extension. I have been attempting to do this and struggling hard. While the code works flawlessly on my laptop, GitHub Actions using xvfb are failing.</p>
<p dir="auto">I've filed a ticket in the downstream Python library <a href="https://github.com/microsoft/playwright-python/issues/1277" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright-python/issues/1277/hovercard">here</a>. Logs of the error can be found <a href="https://github.com/palewire/news-homepages/runs/6637493508?check_suite_focus=true">here</a>. The relevant workflow file is <a href="https://github.com/palewire/news-homepages/blob/ad-blocking/.github/actions/screenshot/action.yml">here</a>. The Python code that launches the browser is <a href="https://github.com/palewire/news-homepages/blob/ad-blocking/newshomepages/screenshot.py">here</a>.</p>
<p dir="auto">Here's my request: This core library should add a unittest that verifies that the recommended use of <code class="notranslate">launch_persistent_context</code> with a browser extension. This would be similar to <a href="https://github.com/microsoft/playwright/blob/main/.github/workflows/tests_video.yml">the existing test that captures video</a>.</p>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: [what Playwright version do you use?] Version 1.10.0-next-1616530863000</li>
<li>Operating System: [e.g. Windows, Linux or Mac]  WIndows 10 10.0.19043 N/A Build 19043</li>
<li>Node.js version: [e.g. 12.22, 14.6] Python 3.9</li>
<li>Browser: [e.g. All, Chromium, Firefox, WebKit] All</li>
<li>Extra: [any specific details about your environment]</li>
</ul>


<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Try to launch playwright for codegen</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ playwright codegen https://github.com/"><pre class="notranslate">$ playwright codegen https://github.com/</pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">When the playwright inspector is launched, It is out of my view of my display, so I clicked on taskbar with <kbd>shift</kbd> and clicked maximised I got inspector full screen but wasn't able to get inspector without maximising it.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/59607654/117133513-f7a4d400-adc1-11eb-96b2-551a60904881.png"><img src="https://user-images.githubusercontent.com/59607654/117133513-f7a4d400-adc1-11eb-96b2-551a60904881.png" alt="Screenshot (58)" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/59607654/117134177-de505780-adc2-11eb-98a1-16c5afdbc445.png"><img src="https://user-images.githubusercontent.com/59607654/117134177-de505780-adc2-11eb-98a1-16c5afdbc445.png" alt="Screenshot (60)" style="max-width: 100%;"></a></p>