A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/playwright/issues/36714 below:

Launching UI Mode on Windows from Administrator Shell Crashes · Issue #36714 · microsoft/playwright · GitHub

Edit from maintainers

Please update to v1.54.2 - this will fix it.

Version

1.46.0

Steps to reproduce

Open a Playwright repository on Windows (can use the Playwright example repo)
npm i
Open an administrator command prompt
Launch UI mode npx playwright test --ui
Things work as expected (assuming the version stays at 1.45)
Upgrade playwright version to >=1.46
Open an administrator command prompt
Launch UI mode npx playwright test --ui
Playwright fails to launch/crashes

Expected behavior

Playwright UI mode should work on elevated or regular shells on Windows like it did pre-1.46.0

Actual behavior

Playwright crashes with this error:

ProtocolError: Protocol error (Browser.getVersion): Internal server error, session closed.
    at C:\playwright-examples-main\node_modules\playwright-core\lib\server\chromium\crConnection.js:135:16
    at new Promise (<anonymous>)
    at CRSession.send (C:\playwright-examples-main\node_modules\playwright-core\lib\server\chromium\crConnection.js:131:12)
    at CRBrowser.connect (C:\playwright-examples-main\node_modules\playwright-core\lib\server\chromium\crBrowser.js:51:35)
    at Chromium._connectToTransport (C:\playwright-examples-main\node_modules\playwright-core\lib\server\chromium\chromium.js:130:33)
    at Chromium._innerLaunch (C:\playwright-examples-main\node_modules\playwright-core\lib\server\browserType.js:133:32)
    at async Chromium._innerLaunchWithRetries (C:\playwright-examples-main\node_modules\playwright-core\lib\server\browserType.js:92:14)
    at async C:\playwright-examples-main\node_modules\playwright-core\lib\server\browserType.js:82:23
    at async ProgressController.run (C:\playwright-examples-main\node_modules\playwright-core\lib\server\progress.js:82:22)
    at async Chromium.launchPersistentContext (C:\playwright-examples-main\node_modules\playwright-core\lib\server\browserType.js:77:21) {
  type: 'closed',
  method: 'Browser.getVersion',
  logs: '\n' +
    '<launching> C:\\Program Files\\Google\\Chrome\\Application\\chrome.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,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 --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --app=data:text/html, --window-size=1280,800 --test-type= --user-data-dir=C:\\Users\\<redacted>\\AppData\\Local\\Temp\\playwright_chromiumdev_profile-oP6RLC --remote-debugging-pipe about:blank\n' +
    '<launched> pid=37964'
}
Additional context

This happens on every version I tested 1.46 and after, even latest.

Environment
System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13800H
    Memory: 27.39 GB / 63.66 GB
  Binaries:
    Node: 22.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.101.2 - C:\Users\<redacted>\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  npmPackages:
    @playwright/test: 1.46.0 => 1.46.0

EmilySaber, dnise01, vchirikov, matt-kxs, etran-kxs and 1 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4