-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[BUG] The First Script cannot launch browsers #5796
Description
Context:
- Playwright Version: 1.9.2
- Operating System: Windows 10 Pro, version 2004, OS build 19041.804
- Node.js version: 14.15.1
- Browser: [chromium, firefox, webkit]
- Extra:
System:
OS: Windows 10 10.0.19041
Memory: 5.14 GB / 15.96 GB
Binaries:
Node: 14.15.1 - C:\Program Files\nodejs\node.EXE
npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
Languages:
Bash: 4.4.20 - C:\WINDOWS\system32\bash.EXE
Code Snippet
const playwright = require('playwright');
(async () => {
try {
for (const browserType of ['chromium', 'firefox', 'webkit']) {
const browser = await playwright[browserType].launch({headless: false, slowMo: 50, dumpio: true});
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();
}
}
catch(e) {
console.log('Caught an error: ', e)
}
})();
Describe the bug
Caught an error: browserType.launch: Timeout 30000ms exceeded.Error
at Object.captureStackTrace (C:\Users\Ani\Documents\Customate\node_modules\playwright\lib\utils\stackTrace.js:48:19)
at Connection.sendMessageToServer (C:\Users\Ani\Documents\Customate\node_modules\playwright\lib\client\connection.js:69:48)
at Proxy. (C:\Users\Ani\Documents\Customate\node_modules\playwright\lib\client\channelOwner.js:64:61)
at C:\Users\Ani\Documents\Customate\node_modules\playwright\lib\client\browserType.js:64:67
at BrowserType._wrapApiCall (C:\Users\Ani\Documents\Customate\node_modules\playwright\lib\client\channelOwner.js:77:34)
at BrowserType.launch (C:\Users\Ani\Documents\Customate\node_modules\playwright\lib\client\browserType.js:55:21)
at C:\Users\Ani\Documents\Customate\Playwright\BasicTest.js:6:53
at Object. (C:\Users\Ani\Documents\Customate\Playwright\BasicTest.js:17:3)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) {
name: 'TimeoutError'
}
ERROR: The process "38104" not found.