-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] The First Script cannot launch browsers #5796
Comments
One of the browsers fails to launch for some reason, could you run your script with the following environment variable to collect more logs:
|
Hi Yuri, here is the output: C:\Users\Ani\Documents\Customate\Playwright>node BasicTest.js |
Removing chrome from the list, so that line 5 becomes: for (const browserType of ['firefox', 'webkit']) { Gives a similar error: C:\Users\Ani\Documents\Customate\Playwright>node BasicTest.js Also, with just webkit: for (const browserType of ['webkit']) { C:\Users\Ani\Documents\Customate\Playwright>node BasicTest.js |
The browser processes die early on start, can you try and launch them without playwright, e.g. this one
|
I can launch all three browsers from \AppData\Local\ms-playwright |
@SBalac can you please try running the full command line: C:\Users\Ani\AppData\Local\ms-playwright\chromium-854489\chrome-win\chrome.exe --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=C:\Users\Ani\AppData\Local\Temp\playwright_chromiumdev_profile-N8Scry --remote-debugging-pipe --no-sandbox |
Hi Andrey,
The full command produced no output in the console and chrome did not start.
I can run chrome.exe from the directory
C:\Users\Ani\AppData\Local\ms-playwright\chromium-854489\chrome-win
…________________________________
From: Andrey Lushnikov ***@***.***>
Sent: Thursday, March 18, 2021 6:58 AM
To: microsoft/playwright ***@***.***>
Cc: Savo Balac ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/playwright] [BUG] The First Script cannot launch browsers (#5796)
@SBalac<https://github.com/SBalac> can you please try running the full command line:
C:\Users\Ani\AppData\Local\ms-playwright\chromium-854489\chrome-win\chrome.exe --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=C:\Users\Ani\AppData\Local\Temp\playwright_chromiumdev_profile-N8Scry --remote-debugging-pipe --no-sandbox
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#5796 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AS6TXPV4CYPJLPXUU6FUMDTTEGQAFANCNFSM4ZAD47FQ>.
|
We are lacking information to address your issue. The logs look normal, the script looks normal, the system looks Ok, yet it won't start the browser. This is the only report of this kind, so I would suspect an anti-virus software or something to do with unusual setup. Sorry I am closing this one without solving it for you, but we need to keep our bug database actionable and there is no action we can perform on this one. Please feel free to file a new issue with any additional details you can provide. |
Context:
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.
The text was updated successfully, but these errors were encountered: