Context:
Code Snippet
const {webkit} = require('playwright');
(async () => {
const browser = await webkit.launch({ headless: false });
const page = await browser.newPage();
await page.goto('https://example.com');
await browser.close();
})();
Describe the bug
WebKit does not launch, in headless/headful modes. I can see the PlaywrightLibrary.dll file in the right directory though - unclear what the error message is referring to


Works for me out of the box on a fresh Win10 install
I get the same issue Window 2012 R2
Testing:
const playwright = require('playwright');
(async () => {
for (const browserType of ['chromium', 'firefox', 'webkit']) {
const browser = await playwright[browserType].launch();
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('http://whatsmyuseragent.org/');
await page.screenshot({ path: example-${browserType}.png });
await browser.close();
}
})();
Chromium and Firefox output correctly.
Can you try Dependency Walker to find out what is the missing DLL for PlaywrightLib.dll.
That was helpful, @fujii! I realized I was on Windows 10 N that was missing a host of api-ms-win-core-* dlls. I installed Media Feature Pack and now I can run WebKit 🎉
@niksimms - can you try running Dependency Walker?
Ah, it's my fault. I assumed no one is using Windows 10 N.
I filed a WebKit bugzilla ticket.
Bug 213330 – [WinCairo][MediaFoundation] Use /DELAYLOAD for mf.dll
https://bugs.webkit.org/show_bug.cgi?id=213330
If you are willing to contribute a patch, I'd be glad to review the patch.
I got the same error, I am on windows 7
Other browsers seems to work fine, except webkit
I believe upstream WebKit WinCairo port fiexed the issue. https://trac.webkit.org/r264188
Closing as the should be fixed in recent builds and we now also have launch doctor functionality which should help debugging such issues.
Most helpful comment
I believe upstream WebKit WinCairo port fiexed the issue. https://trac.webkit.org/r264188