Playwright: [BUG] unable to launch webkit on virtual box windows

Created on 11 Jun 2020  Â·  8Comments  Â·  Source: microsoft/playwright

Context:

  • Playwright Version: 1.1.1
  • Operating System: Windows 10 build 1809 (running on Virtualbox)
  • Node version: 12.8
  • Browser: WebKit

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

Screen Shot 2020-06-11 at 1 06 45 PM

Screen Shot 2020-06-11 at 1 13 52 PM

Most helpful comment

I believe upstream WebKit WinCairo port fiexed the issue. https://trac.webkit.org/r264188

All 8 comments

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.
dw

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliomatcom picture juliomatcom  Â·  3Comments

osmenia picture osmenia  Â·  4Comments

TrySound picture TrySound  Â·  4Comments

saltyshiomix picture saltyshiomix  Â·  3Comments

Sue9445 picture Sue9445  Â·  4Comments