Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] unable to launch webkit on virtual box windows #2548

Closed
arjunattam opened this issue Jun 11, 2020 · 8 comments
Closed

[BUG] unable to launch webkit on virtual box windows #2548

arjunattam opened this issue Jun 11, 2020 · 8 comments

Comments

@arjunattam
Copy link
Contributor

arjunattam commented Jun 11, 2020

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

@pavelfeldman pavelfeldman changed the title [BUG] unable to launch webkit on windows [BUG] unable to launch webkit on virtual box windows Jun 12, 2020
@pavelfeldman
Copy link
Member

Works for me out of the box on a fresh Win10 install

@niksimms
Copy link

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.

@fujii
Copy link

fujii commented Jun 17, 2020

Can you try Dependency Walker to find out what is the missing DLL for PlaywrightLib.dll.
dw

@arjunattam
Copy link
Contributor Author

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?

@fujii
Copy link

fujii commented Jun 18, 2020

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.

@fawazahmed0
Copy link

I got the same error, I am on windows 7
Other browsers seems to work fine, except webkit

@fujii
Copy link

fujii commented Jul 9, 2020

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

@yury-s
Copy link
Member

yury-s commented Jul 31, 2020

Closing as the should be fixed in recent builds and we now also have launch doctor functionality which should help debugging such issues.

@yury-s yury-s closed this as completed Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants