-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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]: An unexpected error occurred: BrowserType.launch: Target page, context or browser has been closed Browser logs: #34879
Comments
The script completes successfully on my machine. Could you provide me with the browser logs from the error message? Maybe there's something interesting in there. |
`Browser logs: C:\Users\Bunmi\AppData\Local\ms-playwright\chromium_headless_shell-1155\chrome-win\headless_shell.exe --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,ThirdPartyStoragePartitioning,LensOverlay,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\Bunmi\AppData\Local\Temp\playwright_chromiumdev_profile-QruBLW --remote-debugging-pipe --no-startup-window
|
Hmm, there's not much in there. I have no idea what's going wrong on your end, but i'm almost certainly sure that there's something wrong on your machine. My recommendation is to seek help over in our Discord Server: https://aka.ms/playwright/discord |
Could you try setting the |
Version
v1.50.1
Steps to reproduce
after creating a Virtual Environment
running the python:
Expected behavior
I expected the code to run so it can read my website
Actual behavior
Results in:
An unexpected error occurred: BrowserType.launch: Target page, context or browser has been closed
Browser logs:
Additional context
I would appreciate a concrete solution. Thank you
Environment
The text was updated successfully, but these errors were encountered: