[BUG] Missing a dependency on docker image which fails webkit
See original GitHub issueContext:
- Playwright Version: 0.12.1
- Operating System: Mac (but we use the ubuntu docker specified in doc)
- Extra: We use docker https://github.com/microsoft/playwright/tree/master/docs/docker to run the screenshot test
Code Snippet
When you running this script in the ubuntu docker
const { webkit } = require('playwright');
(async () => {
const browser = await webkit.launch({
dumpio: true,
});
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('https://google.com');
await page.screenshot({path: 'screenshot.png'});
await browser.close();
})();
Describe the bug Seeing:
[err] /home/pwuser/app/node_modules/playwright/.local-browsers/webkit/minibrowser-wpe/MiniBrowser: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
(node:630) UnhandledPromiseRejectionWarning: Error: Protocol error (Playwright.createContext): Browser has been closed.
at /home/pwuser/app/node_modules/playwright-core/lib/webkit/wkConnection.js:100:63
at new Promise (<anonymous>)
at WKSession.send (/home/pwuser/app/node_modules/playwright-core/lib/webkit/wkConnection.js:99:16)
at WKBrowser.newContext (/home/pwuser/app/node_modules/playwright-core/lib/webkit/wkBrowser.js:65:65)
at WKBrowser.<anonymous> (/home/pwuser/app/node_modules/playwright-core/lib/helper.js:84:31)
at /home/pwuser/app/src/tests/screenshot/specs/test.js:7:33
Basically, it is missing libglu1
for webkit.
As long as we added RUN apt-get install -y libglu1
, it is working.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
missing webkit dependencies - Launchpad Bugs
I have a small test application using Webview that displays YouTube videos correctly in Ubuntu 16.04. In a Docker image of Ubuntu 16.04, ......
Read more >Create a Dev Container - Visual Studio Code
The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open...
Read more >playwright._impl._api_types.error: executable doesn't exist at - You ...
firefox folder (firefox.exe is missing): image ... When I use "playwright" in Cloud Functions, I get the following error: How should I deal...
Read more >Image-building best practices - Docker Documentation
Layer caching · Update the Dockerfile to copy in the package.json first, install dependencies, and then copy everything else in. ·...
Read more >Module Federation - webpack
You are likely missing the remote container, make sure it's added. If you have the container loaded for the remote you are trying...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hmmm, the screenshot looks correct
Let me know if there’s anything else we can do to help you; so far it looks like no code changes should be made to Playwright’s docker image.