Description
openedon Mar 7, 2021
Context:
- Playwright Version: 1.9.1
- Operating System: [WSL2, Debian]
- Node.js version: v14.16.0
- Browser: All
- Extra: x-server (x410)
Code Snippet
const { chromium } = require("playwright");
(async () => {
const browser = await chromium.launch({ headless: false,args: ['--no-sandbox','--disable-setuid-sandbox','--disable-dev-shm-usage','--enable-logging'] });
const context = await browser.newContext();
const page = await context.newPage();
await page.goto("https://www.californiaorganics.com/");
const dimensions = await page.evaluate(() => {
return {
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight,
deviceScaleFactor: window.devicePixelRatio
}
});
console.log(dimensions);
await browser.close();
})();
(async () => {
const browser = await chromium.launch();
// ...
})();
Describe the bug
DEBUG=pw:api node index.js
pw:api => browserType.launch started +0ms
pw:api <= browserType.launch failed +30s
(node:14082) UnhandledPromiseRejectionWarning: browserType.launch: Timeout 30000ms exceeded.
DEBUG=pw:browser* node index.js
pw:browser /root/.cache/ms-playwright/chromium-854489/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --user-data-dir=/tmp/playwright_chromiumdev_profile-cnjjtR --remote-debugging-pipe --no-sandbox --no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage --enable-logging --no-startup-window +0ms
pw:browser pid=14250 +1ms
pw:browser +30s
pw:browser +12ms
pw:browser +4ms
pw:browser +3ms
(node:14173) UnhandledPromiseRejectionWarning: browserType.launch: Timeout 30000ms exceeded.