<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.3.0</li>
<li>Operating System: Windows 7</li>
<li>Node.js version: 12.18</li>
<li>Browser:Chromium</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></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 context = await browser.newContext();
  const page = await context.newPage();


  await browser.close();
})();"><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">context</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">newContext</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">browser</span><span class="pl-kos">.</span><span class="pl-en">close</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></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
Chromium doesn't work, but other browsers seems to work fine</p>
<p dir="auto"><strong>Console Output:</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="G:\GitHub\quran-api&gt;set &quot;DEBUG=pw:api&quot; &amp;&amp; node dircheck.js
(node:16052) UnhandledPromiseRejectionWarning: Error: browserType.launch: Host s
ystem is missing dependencies!

Full list of missing libraries:
    api-ms-win-core-winrt-error-l1-1-0.dll

Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs
.
    at validateDependenciesWindows (G:\GitHub\quran-api\node_modules\playwright\
lib\server\validateDependencies.js:78:11)
    at async validateDependencies (G:\GitHub\quran-api\node_modules\playwright\l
ib\server\validateDependencies.js:47:16)
    at async Object.validateHostRequirements (G:\GitHub\quran-api\node_modules\p
laywright\lib\server\validateDependencies.js:34:5)
    at async Chromium._launchServer (G:\GitHub\quran-api\node_modules\playwright
\lib\server\browserType.js:154:13)
    at async Chromium._innerLaunch (G:\GitHub\quran-api\node_modules\playwright\
lib\server\browserType.js:76:61)
    at async ProgressController.run (G:\GitHub\quran-api\node_modules\playwright
\lib\progress.js:75:28)
    at async Chromium.launch (G:\GitHub\quran-api\node_modules\playwright\lib\se
rver\browserType.js:62:25)
    at async G:\GitHub\quran-api\dircheck.js:4:19
(node:16052) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
 error originated either by throwing inside of an async function without a catch
 block, or by rejecting a promise which was not handled with .catch(). To termin
ate the node process on unhandled promise rejection, use the CLI flag `--unhandl
ed-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti
ons_mode). (rejection id: 1)
(node:16052) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr
ecated. In the future, promise rejections that are not handled will terminate th
e Node.js process with a non-zero exit code."><pre class="notranslate">G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-k">&gt;</span>set <span class="pl-s"><span class="pl-pds">"</span>DEBUG=pw:api<span class="pl-pds">"</span></span> <span class="pl-k">&amp;&amp;</span> node dircheck.js
(node:16052) UnhandledPromiseRejectionWarning: Error: browserType.launch: Host s
ystem is missing dependencies<span class="pl-k">!</span>

Full list of missing libraries:
    api-ms-win-core-winrt-error-l1-1-0.dll

Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs
<span class="pl-c1">.</span>
    at validateDependenciesWindows (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>laywright\
lib<span class="pl-cce">\s</span>erver<span class="pl-cce">\v</span>alidateDependencies.js:78:11)
    at async validateDependencies (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>laywright<span class="pl-cce">\l</span>
ib<span class="pl-cce">\s</span>erver<span class="pl-cce">\v</span>alidateDependencies.js:47:16)
    at async Object.validateHostRequirements (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>
laywright<span class="pl-cce">\l</span>ib<span class="pl-cce">\s</span>erver<span class="pl-cce">\v</span>alidateDependencies.js:34:5)
    at async Chromium._launchServer (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>laywright
<span class="pl-cce">\l</span>ib<span class="pl-cce">\s</span>erver<span class="pl-cce">\b</span>rowserType.js:154:13)
    at async Chromium._innerLaunch (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>laywright\
lib<span class="pl-cce">\s</span>erver<span class="pl-cce">\b</span>rowserType.js:76:61)
    at async ProgressController.run (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>laywright
<span class="pl-cce">\l</span>ib<span class="pl-cce">\p</span>rogress.js:75:28)
    at async Chromium.launch (G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\p</span>laywright<span class="pl-cce">\l</span>ib<span class="pl-cce">\s</span>e
rver<span class="pl-cce">\b</span>rowserType.js:62:25)
    at async G:<span class="pl-cce">\G</span>itHub<span class="pl-cce">\q</span>uran-api<span class="pl-cce">\d</span>ircheck.js:4:19
(node:16052) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
 error originated either by throwing inside of an async <span class="pl-k">function</span> <span class="pl-en">without</span> a catch
 block, or by rejecting a promise which was not handled with <span class="pl-en">.catch</span>(). To termin
ate the node process on unhandled promise rejection, use the CLI flag <span class="pl-s"><span class="pl-pds">`</span>--unhandl</span>
<span class="pl-s">ed-rejections=strict<span class="pl-pds">`</span></span> (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti
ons_mode). (rejection id: 1)
(node:16052) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr
ecated. In the future, promise rejections that are not handled will terminate th
e Node.js process with a non-zero <span class="pl-c1">exit</span> code.</pre></div>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.3.0</li>
<li>Operating System: Windows</li>
<li>Node.js version: 12.18.1</li>
<li>Browser: All</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const playwright = require('playwright');
const browserType = 'chromium';

async function botfunc() {
	let browser = playwright[browserType].launch();
	const context = await browser.newContext();
	const page = await context.newPage();
	
	await page.goto(&quot;http://google.com&quot;);
}

botfunc();"><pre class="notranslate"><code class="notranslate">const playwright = require('playwright');
const browserType = 'chromium';

async function botfunc() {
	let browser = playwright[browserType].launch();
	const context = await browser.newContext();
	const page = await context.newPage();
	
	await page.goto("http://google.com");
}

botfunc();
</code></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
Error log -</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UnhandledPromiseRejectionWarning: Error: browserType.launch: Host system is missing dependencies!
Full list of missing libraries:
   api-ms-win-core-winrt-error-l1-1-0.dll
"><pre class="notranslate"><code class="notranslate">UnhandledPromiseRejectionWarning: Error: browserType.launch: Host system is missing dependencies!
Full list of missing libraries:
   api-ms-win-core-winrt-error-l1-1-0.dll

</code></pre></div>
<p dir="auto">It was solved when I used 1.0.2 version.</p>