<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: [1.10.0]</li>
<li>Operating System: [Windows]</li>
<li>Node.js version: [v14.15.3]</li>
<li>Browser: [All]</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="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx playwright codegen wikipedia.org"><pre class="notranslate"><code class="notranslate">npx playwright codegen wikipedia.org
</code></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
Playwright inspector is not opening. I see a new tab in the tool bar at the bottom but when I click and try to open it, it does not do anything. Also the ode generated cannot be viewed. So in a nutshell cannot open, view the PW inspector.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/83778331/118494540-e358c380-b73f-11eb-8f62-bc9df88d315c.jpg"><img src="https://user-images.githubusercontent.com/83778331/118494540-e358c380-b73f-11eb-8f62-bc9df88d315c.jpg" alt="PW inspector" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.9.0</li>
<li>Operating System: Windows10</li>
<li>Node.js version: v12.18.2</li>
<li>Browser: Chromium</li>
<li>Extra: laptop with 13,3" screen, 1920 x 1080 (FullHD) resolution, scaled to 150%, setup with external monitor placed above laptop screen</li>
</ul>
<p dir="auto">Example script</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require('playwright');
(async () =&gt; {
  const browser = await chromium.launch();
  const page = await browser.newPage();
})().then(() =&gt; console.log('finished'));"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <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-kos">(</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">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</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">browser</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'finished'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">When trying to debug script (set PWDEBUG=1) Playwright Inspector window is opened by Playwright outside of visible screen space - it is opened past the right border of the screen.</p>
<p dir="auto">in<br>
src\server\supplements\recorder\recorderApp.ts RecorderApp.open<br>
there is a definitions of arguments for opening the window<br>
const args = [<br>
'--app=data:text/html,',<br>
'--window-size=600,600',<br>
'--window-position=1280,10',<br>
];<br>
when 1280 is changed to say 700 then Playwright Inspector windows is visible after it is first opened by Playwright.</p>